Encapsulation or Data hiding or Information hiding.
In Object-oriented Programming Encapsulation is a technique to hide or restricted the access to the properties and behaviours of an object.
Encapsulation is a process of wrapping code and data together into a single unit, for example a capsule in which mixed of several medicines.
Encapsulation mechanism keeps the data and the code safe from external interference.
Access restriction to the properties and methods by using the keywords private, public, protected in a class.
Webster Dictionary Meaning
More from this Section
- Object-Oriented Programming
Object-oriented programming (OOP) is defined as a concept of programming based on objects in ...
- Computer Programming
Computer programming can be defined as creating or writing a sequence of instructions ...
Bit is an electronic signal that denotes a zero or a one; the smallest unit of representation ...
- C++ Programming Language
C++ an Object-Oriented Programming language developed by Bjarne Stroustrup at Bell Laboratories ...
Byte is a unit of computing data and information memory space that comprises a set of ...