OOPs Concepts
Programming and Technical
Programming
Definition
What is Encapsulation?
Read Solution (Total 1)
-
- In computer science, encapsulation is the binding of behavior and attributes to an entity. Encapsulation is the packaging of data and functions to create a data type.
In C++, encapsulation is the placing of data and methods inside an object and establishing a well-defined interface to the object. This approach make an object appear and behave like a black box. Encapsulation describes the ability of an object to hide its data and methods from the rest of the world. With respect to a class, it is the hiding of the internal representation of objects and implementation details from the user of an object. - 6 years agoHelpfull: Yes(0) No(0)
OOPs Concepts Other Question