---
title: "What is Abstraction?"  
description: "What is Abstraction?"  
author: "Shikhar Arora"  
published: 2019-11-07  
updated: 2019-11-07  
canonical: https://www.mindstick.com/forum/145449/what-is-abstraction  
category: "c#"  
tags: ["c#", ".net", "oops", "programming language"]  
reading_time: 2 minutes  

---

# What is Abstraction?

What is [Abstraction](https://www.mindstick.com/articles/944/abstraction-in-c-sharp) C#?

## Replies

### Reply by Shikhar Arora

Abstraction is showing the working of the machine but not the internal parts of the machine or the complexity of the machine. An abstract class cannot be instantiated. Only abstract methods can be declared in an abstract class which is necessary for the class, without them the class is of no use.

```
 namespace ConsoleApplication5  {      abstract class Car //abstract class      {          public abstract void Start();          public abstract void Stop();      }      class Program:Car      {     //Overriding abstract methods          public override void Start()          {              Console.WriteLine("Car has started");          }          public override void Stop()          {              Console.WriteLine("Car has stopped");          }          public void ApplyBrakes()          {              Console.WriteLine("Brakes have been applied");          }          static void Main(string[] args)          {              Program obj = new Program();//Instantiating Program class              //Calling abstract methods              obj.Start();              obj.ApplyBrakes();              obj.Stop();              Console.ReadLine();          }      }  }
```


---

Original Source: https://www.mindstick.com/forum/145449/what-is-abstraction

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
