Please give your valuable suggestions and feedback to improve this article in the comments section.


Hierarchical inheritance definition with example in C#.Net

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:
Hierarchical inheritance definition with example in C#.Net


See more OOPS DOTNET Interview Questions

See more ASP.NET, C#.NET, SQL Server and more Interview Questions


Share this post :

Post a Comment

Please give your valiable feedback on this post. You can submit any ASP.NET articals here. We will post that articals in this website by your name.

Note: only a member of this blog may post a comment.

 
Support : Ranga Rajesh Kumar
Copyright © 2012. ASP.NET Examples - All Rights Reserved
Site Designed by Ranga Rajesh Kumar