polymorphism
Or as we call it, "A Dog is an animal but not every animal is a dog"
In this article we'll explain that :
- You can assign a Dog to a field of type Animal
Animal a = new Dog();
- You cannot assign an Animal to a field of type Dog
-Dog a = new Animal();
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com