.NET and OOP interview questions :- What is the difference between abstraction and encapsulation ?

 Posted by articlesmaint on 2/16/2011 | Category: .NET Framework Interview questions | Views: 12935

This is a very typical .NET  interview question which confuses most of the .NET professionals. Both abstraction and encapsulation look similiar , but they have huge differences between them.

Abstraction is nothing but simplifying objects while encapsulation is hiding complexity.

Encapsulation implements abstraction. Abstraction is a thought process which happens during planning phase.  While encapsulation implements abstraction by using access modifiers ( private,public, protected,internal and protected internal).


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response