what it means when i used Polymorphism using Java, using> import extra.Animal; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what it means when i used Polymorphism using Java, using> import extra.Animal;

Exception in thread "main" java.lang.Error: Unresolved compilation problems: Dog cannot be resolved to a type Cat cannot be resolved to a type at newsample.mainsample.main(mainsample.java:8)

19th Aug 2018, 8:06 AM
MD. JIKRUL SAYEED HOSSAIN
MD. JIKRUL SAYEED HOSSAIN - avatar
1 Answer
+ 2
Could you provide a link to the code snippet?
19th Aug 2018, 8:37 AM
Roman Khristoforov
Roman Khristoforov - avatar