Java Learning Made Easy by Dheeraj Mehrotra - HTML preview
PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.
Download the book in PDF, ePub, Kindle for a complete version.
MODIFIERS



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.




















attention@computerscienceexpertise.com























