Why when you create a dog object dog reference you call the


1. Why Animal is Used a Dog = new Dog () ;. That is reference to the Animal class but Dog object? Why not use Dog unDog = new Dog (); only?

2. Why when you create a Dog object Dog reference you call the Animal constructor and the Dog constructor?

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Why when you create a dog object dog reference you call the
Reference No:- TGS02850680

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)