Tags

Inheritance

Inheritance is one of the corner stones of object oriented programming because it allows the creation of hierarchical classifications. Using inheritance you can create a general class that defines its traits common to a set of related itmes. This class can then be inherited by other, more specific classes, each adding those things that are unique to each other. In Java, a class that is inherited is called a super class (in .net it is called base class) and the class that does the inheriting is called sub class (derived class in .net). There for sub class is a specified version of super class. it inherits all of the instance variable and methoda defined by the super class and adds its own unique elements.