Now its time for us to get into Java Object Oriented Programming concepts (OOP). Inheritance is defined as defining the common features (eg. variables & methods) in a single class and reusing them by using the sub objects. Sub objects means the sub classes which inherits the common feature class. Inheritance: Parent Class – The…