What is a public method?
A public method is a method which can be called by any object.
Declaring a method public defines its access level.
The other options for declaring visibility are private and protected.
If undeclared, the default access level is package.
|
Bookmark What ia a Public Method?


