April 2019
Intermediate to advanced
360 pages
9h 17m
English
Encapsulation refers to the hidden nature of an object's data components. We know that the data is there, but cannot access it directly because external entities cannot directly interact with that data:

The illustration above demonstrates how a Bicycle class protects its data from external methods and functions. The object's own methods are the only mechanism that can directly view or alter its data.
Read now
Unlock full access