Inheritance (The Java™ Tutorials > Learning the Java Language > Interfaces and Inheritance)
Polymorphism (The Java™ Tutorials > Learning the Java Language > Interfaces and Inheritance)
Type: Posts; User: helloworld922
Inheritance (The Java™ Tutorials > Learning the Java Language > Interfaces and Inheritance)
Polymorphism (The Java™ Tutorials > Learning the Java Language > Interfaces and Inheritance)
Polymorphism basically is treating one type of object as another.
For example, a car is an automobile. A truck is also an automobile. thanks to polymorphism, we can treat a car as an automobile,...