Abstraction Vs Encapsulation
Abstraction
Abstraction hides the internal implementation , and creates the skeleton of what is required for that Entity.
This is achieved by creating a class and defining the member variables, properties and methods inside it, as per the requirement.
Encapsulation
Encapsulation hides the data from external world. It protects the data within class, and exposes methods to the world.
This is achieved by using access modifiers like private, public, protected, internal.
Ещё видео!