A method is declared as protected. What classes can access this method? (Choose two. Each option is a correct answer.)

    1. Classes in the same package
    1. All classes
    1. Only the class within the package that defined the method
    1. Classes that inherit access

Correct Option: A,D

Find more quizzes: