A method or instance variable modified by protected:
A) can not be accessed by name inside its own class definitions.
B) can not be accessed by name inside any class derived from it.
C) can not be accessed by name in the definition of any class in the same package.
D) can not be accessed by name in any other class that is,other than classes named in a-c. ) .
Correct Answer:
Verified
Q9: The equals method for a class should
Q10: In using the keyword this in place
Q11: A derived class is a class defined
Q12: Inheritance promotes code _.
A)reinvention
B)reuse
C)repeats
D)all of the above
Q13: A super class is also called a
A)derived
Q15: When you define a derived class,you give
Q16: If the final modifier is added to
Q17: The class _ is an ancestor class
Q18: The special syntax for invoking a constructor
Q19: The keyword extends indicates:
A)encapsulation
B)polymorphism
C)inheritance
D)none of the above
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents