Inheritance delivers us a strong and powerful system to structure our desired software. The classes of the programming language usually inherit their state and behaviour from super classes. Inheritance is nothing but the derivation of one class from another class.
Let us explain this inheritance a bit:
Nowadays, a single object or a commodity is frequently updated in the course of time. At the same time a lot of variation of a single object is also available due to enormous market competition. Say you want to club some objects that are similar to some extent or that are nothing but the variation of a single object. So here by applying the theory of inheritance you can define the parent object as the super-class and the variations of the parent object as the sub-elass.
![]()



Reply With Quote
Copyright Techfuels
Bookmarks