Hierarchical inheritance
This is one type of inheritance, where we will have one or more derived classes are derived from one base class. Clearly, it is like tree structure.Example:
class BaseClass{
//this is base class
}
class DerivedClass1:BaseClass{
//this is inherited by BaseClass
}
class DerivedClass2:BaseClass{
//this is inherited by BaseClass
}
Diagram:
See more OOPS DOTNET Interview Questions
See more ASP.NET, C#.NET, SQL Server and more Interview Questions

Post a Comment
Please give your valuable feedback on this post. You can submit any ASP.NET article here. We will post that article in this website by your name.