Posts by Fvslistas • 1 point
1 post
-
0
votes3
answers77
viewsA: How can I access a subclass method through a superclass-like object
When the new command was executed, you generated an instance (an object) of the XYZ type. However, your reference, obj, is type ABC. No problem. To access XYZ methods you need to indicate that…