Visibility Modifiers : private, public
Each member of a class whether it is a data or a method can be given access control or visibility modifier:
private : it means that the item is visible only within the class
public: means that the item is accessible from outside the class thru’ dot notation.
Typically the data members are private, most methods are public.