Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. heck off which type of members a subclass may access from its superclass publ

ID: 3798940 • Letter: 1

Question

1. heck off which type of members a subclass may access from its superclass public protected private 2. The operator is used to determine whether a reference variable references an object of a particular class. a. instanceof b. private d. typecast C. Super 3. 2) Using binding, the Java system determines which method to call, based upon the type of the object referenced by a reference variable. a. dynamic b. early d, static runtime 4. (2) A base class reference variable may by assigned the address of either a base class object or a derived class object. a. True b. False 5. If a subclass inherits from an abstract superclass, it must overwrite all abstract methods listed in the superclass. a. True b. False

Explanation / Answer

1. a subclass can access both public and protected members of superclass. but it is not possible to access private members directly.

2. answer is (a) instanceof

   instanceof operator is used to test wheather the object is a type of specified or given type.

3. answer is (d) static binding

in static binding compiler decides which method to be called.

4. this statement is false. a base class object may assigned by the base class object only.

5. this statement is true. the subclass must override all methods listed in the superclass.

******************END******************PLS GIVE ME GOOD RATING****************************