Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Sep 7, 2022, 4:33 AM EDT
Alkesh BijarniyaRank #237 · 10.4K reputationPosted Sep 7, 2022, 2:23 AM EDT
Abstraction is "To represent the essential feature without representing the background details."
Abstraction lets you focus on what the object does instead of how it does it.
Abstraction provides you a generalized view of your classes or objects by providing relevant information.
Abstraction is the process of hiding the working style of an object, and showing the information of an object in an understandable manner.
Real-world Example of Abstraction
Suppose you have an object Mobile Phone.
Suppose you have 3 mobile phones as in the following:
Nokia 1400 (Features: Calling, SMS)
Nokia 2700 (Features: Calling, SMS, FM Radio, MP3, Camera)
Black Berry (Features:Calling, SMS, FM Radio, MP3, Camera, Video Recording, Reading E-mails)
Abstract information (necessary and common information) for the object "Mobile Phone" is that it makes a call to any number and can send SMS.
Abstraction means putting all the variables and methods in a class that are necessary.
For example: Abstract class and abstract method.
Abstraction is a common thing.
Vishal YelveRank #178 · 13.6K reputationPosted Sep 7, 2022, 2:26 AM EDT
Abstraction allows making relevant information visible and encapsulation enables a programmer to implement the desired level of abstraction.
Abstraction can be achieved using abstract classes in C#. C# allows you to create abstract classes that are used to provide a partial class implementation of an interface.
for more details please refer below links
Shiv Prasad Koirala Sir Video.
https://youtu.be/0EnSPBVrbG0
OR
Kudvenket video
https://www.youtube.com/watch?v=7amjs2y_dgo
https://www.youtube.com/watch?v=yyU3bXyc_oU
https://www.geeksforgeeks.org/c-sharp-abstraction/
https://www.c-sharpcorner.com/UploadFile/4624e9/abstraction-in-C-Sharp/
Amit MohantyRank #112 · 20K reputationPosted Sep 8, 2022, 12:29 AM EDT
Patel134 reputationPosted Sep 8, 2022, 2:57 AM EDT
Lalit HolkarRank #9,026 · 212 reputationPosted Sep 8, 2022, 5:43 AM EDT
Rajeev KumarRank #1,334 · 1.3K reputationPosted Mar 3, 2023, 2:19 AM EST
In Abstraction, by using access modifiers, we can hide the required details of the object and expose only necessary methods and properties through an object's reference. In real-time, the laptop is a perfect example of abstraction in c#.