Inheritance and Its Types
Bequest is the procedure for making a fresh Group, called the Extracted Category, in the present group, called the Foundation Group. The Bequest has several benefits, the most significant of these being the re usability of signal. Rather than creating new Things from scratch, fresh signal may be according to the function of other programmers, including just the fresh attributes which might be required. The re use of existing types conserves commitment.
Nevertheless, bequest might be executed in different mixes in Object oriented Development languages as highlighted in number and they contain:
When a Derived Category to acquire attributes and behaviour from one Foundation Group, it’s called as single bequest.
Multi Level Inheritance
A derived type is made from another derived type is called Multilevel Bequest
More than a derived type are made from just one base type, is known as Hierarchical Bequest
Any combination of above three bequest (solitary, ordered and multilevel) is named as hybrid vehicle bequest.
Several inheritance is a way of inheritance where one derived class may acquire properties of bottom type in different routes. This bequest isn’t supported in .NET Languages like C#.
Several inheritances enables developers to generate groups that combine facets of several types and their accompanying hierarchies. In .Net Frame Work, the groups are just permitted to acquire from one parent group, which can be called single inheritance.