Under Java->More on Classes->Polymorphism, to create an object of an inherited class, " Animal a = new Dog();" is used. "Dog a = | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Under Java->More on Classes->Polymorphism, to create an object of an inherited class, " Animal a = new Dog();" is used. "Dog a =

I am new to Solo Learn

20th Aug 2018, 4:25 AM
Dinesh Kumar
Dinesh Kumar - avatar
2 Answers
0
Dog a = new Dog();
20th Aug 2018, 7:16 AM
Kapi
0
if you want to post a question you have two important fields , write the title of your problem in question field, and write the details of your problem in description field.
20th Aug 2018, 7:23 AM
Mohammed