Thank you for your question.
Encapsulation is hiding implementation from end user. Example:
String str1="Hello";
Console.Write(str1.Length);
In the above example,
str1 String instance object hide implementation details of
Length from client.
Abstraction is everything that need to build an object. In real world consideration, to build a car you need wheels, color, steering wheels, looking glass etc. All things are needed to abstraction a car object.
Example:
public class Car
{
int _wheel;
String _color;
int _glass;
public int Wheel
{
get {return _wheel;}
set { _wheel=value;}
}
public String Color
{
get {return _color;}
set { _wheel=color;}
}
public int Glass
{
get {return _glass;}
set { _glass=value;}
}
}
Has this example made you clear?
Thanks,
Mamun