---
title: "Abstraction in C# oops"  
description: "Hello Everyone here we will explain about Abstraction in oops c#. Abstraction is very important feature in c#."  
author: "Rashmi Sharma"  
published: 2021-05-10  
updated: 2021-05-10  
canonical: https://www.mindstick.com/articles/326488/abstraction-in-c-sharp-oops  
category: "c#"  
tags: ["c#", "oops", "abstract class"]  
reading_time: 1 minute  

---

# Abstraction in C# oops

**[Abstraction](https://www.mindstick.com/blog/668/abstraction-and-encapsulation) :-**

It Displays only necessary details and hides unnecessary to the outside world. Abstraction is about to show only [essential](https://www.mindstick.com/articles/157259/why-web-design-is-essential) details and [functionality](https://www.mindstick.com/interview/547/explain-about-the-functionality-of-vb-script) to the user. It provides hiding the [implementation](https://yourviews.mindstick.com/view/60537/nationalwide-nrc-implementation-bjp-looting-congress-s-idea) from the user. when we are hiding the details use private [access modifier](https://www.mindstick.com/forum/33638/protected-access-modifier-c-sharp).

**[Abstract Class](https://www.mindstick.com/blog/665/constructor-in-abstract-class-in-c-sharp) :-** A class which contains any abstract members in it is [known as](https://answers.mindstick.com/qa/31993/who-is-popularly-known-as-iron-man-of-india) abstract class.

An abstract class is a partially implemented class used for developing some of the [operations](https://answers.mindstick.com/qa/34054/who-has-taken-charge-as-the-new-director-general-of-military-operations-dgmo-of-the-indian-army) of an object which are common for all next level subclasses.

**For ex :-** Rectangle, Circle, Triangle and cone.

**Entities:**

**Rectangle :** Width, Height

**Circle :** Radius, Pi

**Triangle :** Width, Height

**Cone :** Radius, height, Pi

**Common [Attributes](https://www.mindstick.com/interview/34453/what-are-attributes-in-dot-net) :**

Width, Height, radius, Pi

**[Abstract Method](https://www.mindstick.com/articles/23305/abstract-methods-and-class-in-c-sharp) :-**

1. A method does not have a body is called an abstract method. A method have abstract access modifier.

2. Overriding an abstract method is compulsory.

---

Original Source: https://www.mindstick.com/articles/326488/abstraction-in-c-sharp-oops

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
