0
that is not correct. You can use public, protected, private (sorted by visibility.) Static is a modifier,later about that. Public is, when a method is public it can be accesed from everywhere. (class, package, subclass, world) Protected is, when a methid is protected, it can be only accessed by its own package-level classes(class, package, subclass) Private is, when a method is private,it can be only accessed by its own class-level methods When tgeres no modifier, it can only be accesed by the class and package. static defines wether the method can be instantiated. This is required on the OOP-level of programming, you can always check with instanceof.
22nd Aug 2016, 8:35 AM
MolnĂĄr GĂĄbor
MolnĂĄr GĂĄbor - avatar