Public access modifier (public)

Methods, variables, constructors, and structures declared public can be accessed freely from outside the declaring class. A public class existing in a different package from an accessing class must be imported before it can be used. The following class makes use of the public access modifier:

public class Person { .. }
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.17.27