Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Abstraction in C#
WhatsApp
Praveen K
9y
6.9
k
0
2
25
Blog
Abstraction
Abstraction is one of the principle of object oriented programming . It is the concept of display only the necessary and essential features of an object .You can find the concept of Abstraction in your real world in many instances .
Example for Real world Example : The simple and well known example is steering of the car . if you turn the steering to right the wheels will be moved to right .hence As a driver you will be instructed to use the steering as the essential feature to drive instead of explaining the internal mechanism how the wheels worked .
How to Implement in Your Real time Project?
For the Beginners , it is important to implement oops concept in your code as it indicates the quality of your code . You can implement abstraction in many ways . The best and simple way is using property procedures
Code
public
class
Employee
{
private
int
pSal;
public
int
sal
{
get
{
return
pSal;
}
set
{
pSal = value;
}
}
}
Abstraction in C#
Up Next
Concepts Of OOPS- Encapsulation And Abstraction
Ebook Download
View all
Pattern Matching in C#
Read by 1.5k people
Download Now!
Learn
View all
Membership not found