articles

Home / DeveloperSection / Articles / Abstraction in C# oops

Abstraction in C# oops

Abstraction in C# oops

Rashmi Sharma646 10-May-2021

Abstraction :-

It Displays only necessary details and hides unnecessary to the outside world. Abstraction is about to show only essential details and functionality to the user. It provides hiding the implementation from the user. when we are hiding the details use private access modifier.

Abstract Class :- A class which contains any abstract members in it is known as abstract class.

An abstract class is a partially implemented class used for developing some of the operations 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 :

Width, Height, radius, Pi

Abstract Method :-

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.


Updated 10-May-2021
My Hometown is Agra. i have done my schooling from John Milton Public school, Agra. After that my Graduation(B.C.A) specialised in Computer Application was done from Aryan institute of management and computer studies and Post Graduation(M.C.A) specialised in Computer Application from Hindustan Institute of management and Computer Studies. I have started my Career as Programming Trainer in the Computer Training Institute around 2 years from 2015 to 2017 and changed to dot net developer

Leave Comment

Comments

Liked By