Question: In Java and C++ a reference or pointer to a child class object may be assigned to a reference variable or pointer (respectively) of the

In Java and C++ a reference or pointer to a child class object may be assigned to a reference variable or pointer (respectively) of the parent class type.  Describe the differences in how the subclass object may be used via such references.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

In both Java and C you can assign a reference or pointer to a child class object to a reference variable or pointer of the parent class type This is k... View full answer

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 Algorithms Questions!