0
Encapsulation is essentiallyâdata hiding â.
A class is a construct that can be instantiated to create objects in memory. The class will use encapsulation (e.g. public and private methods) to hide attributes that you don't want to allow public access to. Finally an instance of the class will be created. This object will show and hide members based on the encapsulation set in the class.