explain concept of inheritance with support of


Explain concept of inheritance with support of suitable example.

Inheritance

Inheritance is one of milestone of object-oriented programming language as it allows a creation of hierarchical classifications. Using inheritance we can create a general class which defines trails common to a set of related items. More particular classes can inherit this class and each can add a certain exceptional thing to the resulting new class. The class which inherits from another, class or classes is termed as derived class or subclass and the class/classes from which derived class is made is called as a base class or a super class. For illustration, racing cars, Pick up cars and saloons etc. are all dissimilar kinds of cars in object-oriented terminology racing cars. Pick up cars, and saloons etc. are all subclasses of car class. Also, as illustrated in Figure, below, the car class is super class of sub classes like racing cars, sedans, saloons, convertibles, etc.

 

Request for Solution File

Ask an Expert for Answer!!
Database Management System: explain concept of inheritance with support of
Reference No:- TGS0353655

Expected delivery within 24 Hours