For object x to access a method of object y, when the method has no access modifier, object x MUST be an instance of a class which is:
A) The same as the class of object y
B) A subclass of the class of object y
C) A superclass of the class of object y
D) Unrelated to the class of object y

Respuesta :

When the method has no access modifier, Object x must be an instance of a class that is either the same as the class of Object y or a subclass of the class of Object y.

Therefore, the correct answer is:

A) The same as the class of object y

B) A subclass of the class of object y

ACCESS MORE
EDU ACCESS