Encapsulation is a way to restrict the direct access to some components of an object, so users cannot access state values for all of the variables of a particular object.
Explanation:
Encapsulation can be used to hide both data members and data functions or methods associated with an instantiated class or object.
Answers & Comments
Answer:
Encapsulation is a way to restrict the direct access to some components of an object, so users cannot access state values for all of the variables of a particular object.
Explanation:
Encapsulation can be used to hide both data members and data functions or methods associated with an instantiated class or object.
Hope this is helpful
Answer:
Encapsulation is a way to restrict the direct access to some components of an object.
Explanation:
Encapsulation can be used to hide both data members and data functions or methods associated with an instantiated object.