---
title: "What is inheritance and how many types of inheritance  in OOPs?"  
description: "What is inheritance and how many types of inheritance  in OOPs?"  
author: "Ravi Vishwakarma"  
published: 2021-08-23  
updated: 2021-08-23  
canonical: https://www.mindstick.com/forum/156700/what-is-inheritance-and-how-many-types-of-inheritance-in-oops  
category: "c#"  
tags: ["c#", "java", "c++"]  
reading_time: 1 minute  

---

# What is inheritance and how many types of inheritance  in OOPs?

What is [inheritance](https://www.mindstick.com/articles/13095/inheritance-and-its-types) and how many types of inheritance in [OOPs](https://www.mindstick.com/articles/1558/introduction-to-oops-object-oriented-programming-system)?

## Replies

### Reply by Ashutosh Kumar Verma

## Inheritance in OOPs-

Inheritance is a technique to access of data and methods of a class into its derived class. The main purpose to using inheritance in programming to reduce the length of code and easily develop the code.

## Types of Inheritance in OOps-

There are generally 3 types of inheritance are defined in c# which are-

1-Single Inheritance

2- multilevel Inheritance

3- Hierarchical Inheritance

There are one more types of inheritance can used in c# named is 'Multiple Inheritance'. Multiple inheritance is not directly used by class because a single class can inherits only one base class at a time. By using interface we use the multiple inheritance in our program.


---

Original Source: https://www.mindstick.com/forum/156700/what-is-inheritance-and-how-many-types-of-inheritance-in-oops

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
