0
differences among the objects
what's the difference among Animal a=new Animal(); Animal a=new Dog(); and Dog a=new Dog(); (the Animal is the superclass and the Dog is subclass and a is the object)
1 Resposta
+ 1
1)Animal is the Parent Class.
2)Dog is the Child Parent.
Parent class object can refers to child class object.