Question: What is a polymorphic variable in ( mathrm { C } + + ) ? A pointer or reference variable of an

What is a polymorphic variable in \(\mathrm{C}++\)? A pointer or reference variable of an abstract class type that is able to refer to objects of that class and objects of any of its descendants' classes. A pointer or reference variable of a class type that is able to point to objects of that class and objects of any of its descendants' classes. A pointer or reference variable of a class that can point to objects of its own class type only. A pointer variable of a class type that is able to point to objects of that class and objects of any of its descendants or ancestors' classes.

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!