Question: Can you help me with this JAVA questions please. Question 9 (1 point) Given that class Derived inherits from class Base, and class Derived adds

Can you help me with this JAVA questions please.  Can you help me with this JAVA questions please. Question 9

Question 9 (1 point) Given that class Derived inherits from class Base, and class Derived adds methods that are not part of class Base, it is legal for a Base class reference to a Derived object to access methods that are defined in the Derived class and not in the Base class. True False Save Question 10 (1 point) Given a class Derived that inherits from class Base, and overrides functionX of class Base, what can be said about the following? Derived ref new Base); ref.functionX); The Derived class version of functionX will be executed It is illegal to assign a Base object reference to a Derived reference variable, since not all Base objects are Derived objects. The Base class version of functionX will be executed. Both versions of functionX will be executed. Save

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!