You are on page 1of 3

DATA HIDING

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

You might also like