![Free-eBooks.net](/resources/img/logo-nfe.png)
![All New Design](/resources/img/allnew.png)
The visibility labels are of two major types viz. public and private.
The method or a variable with modifier public is accessible wherever
the program has access to an object. Any instance variable or
method declared with class private is accessible only to methods of
the class.The instance variable private are accessible to methods of
the class. The instance variables are normally declared private and the methods are declared as public.