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
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
Get step-by-step solutions from verified subject matter experts
