Difference between Abstraction and Encapsulation in C#
Abstraction
*Showing only what is necessary
*It is done in Design phase.
*It can be achieved using Abstract class and interface.
Encapsulation
*Hiding the unnecessary data.
*It's done in Coding phase.
*It can be achieved using Access modifiers.
*Showing only what is necessary
*It is done in Design phase.
*It can be achieved using Abstract class and interface.
Encapsulation
*Hiding the unnecessary data.
*It's done in Coding phase.
*It can be achieved using Access modifiers.
Comments
Post a Comment