encapsulation hiding or controlling access to the implementation-related attributes and the methods of class is called encapsulation with appropriate data encapsulationa class will present well-defined public interface for its clientsthe users of the class client should only access those data attributes and invoke those methods that are in the public interface purdue university