
Concepts of Object-oriented Programming 389
This process is called encapsula-
tion. The access of members of
a class can be protected or made
public by using access specifiers.
The member variables are pro-
tected from external access under
private or protected specifiers
whereas variables are public in the
case of public specifiers. So private
members can be accessed within
the class and public members can
be accessed from outside the class.
Objects are used for controlling
the access of member functions
and member variables in object-
oriented programming. The
forthcoming sections discuss the
concepts of object oriented pro-
gramming in detail ...