Professional Documents
Culture Documents
ENCAPSULATION
core of OOP is to encapsulate data
and related routines into a class
Hiding the properties from being
accessed outside the class is called
encapsulation.
all the properties of the class are
public by default
for hiding data constructs in SV we
use public, private and protected
EXAMPLE