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
Q3: The special syntax for invoking a constructor
Q4: A super class is also called a
A)derived
Q6: Inheritance refers to a very specialized form
Q6: What does a derived class automatically inherit
Q9: The keyword extends indicates:
A)encapsulation
B)polymorphism
C)inheritance
D)none of the above
Q10: The equals method for a class should
Q11: In using the keyword this in place
Q12: The Object class contains the method:
A)getClass()
B)toString()
C)equals()
D)all of
Q15: When you define a derived class,you give
Q20: A derived class contains only public instance
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