Abstraction:
Abstraction refers to, providing only essential information to the outside world and hiding their background details.
Encapsulation :
The wrapping up of data members and member functions into a single unit is called encapsulation. Every class is encapsulation
and every method is also an encapsulation.
Example: Class is encapsulation where as object created for that class is abstraction.
No comments:
Post a Comment