Java Inheritance and Polymorphism

Java Inheritance and Polymorphism

This is an article about basic inheritance and polymorphism in Java Programming Language.Let’s start by creating a class hierarchy based on animals in a zoo.First we create the Animal base class.The central idea is that we have a group of animals living inside a zoo.This group of animals consists of Lions, Tigers, Cats, Hippos, Wolfs […]

Read More