TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Abstraction in C#
Praveen K
Apr 13, 2015
6.8
k
0
2
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog we will see details about Abstraction in C#.
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#
Next Recommended Reading
Concepts Of OOPS- Encapsulation And Abstraction