+ 9
Default: Default access modifier is no-modifier. i.e when you do not specify any access modifier explicitly for a method, a variable or a class ( FYI : a top-level class can only be default or public access modifiers) it gets the default access. Default access also means “package-level” access. That means a default member can be accessed only inside the same package in which the member is declared. public:The public access modifier is accessible everywhere. It has the widest scope among all other modifiers.
6th Dec 2017, 5:21 PM
GAWEN STEASY
GAWEN STEASY - avatar