1.

Why use reference variable of another class to create object of another class

Answer»

Answer:

here's UR Answer

We can USE superclass REFERENCE to hold any subclass object derived from it. DISADVANTAGE : By using superclass reference, we will have access only to those PARTS(methods and variables) of the object defined by the superclass. ... This is because they are defined in subclass not in the superclass.



Discussion

No Comment Found