Access Specifier
Access Specifier
1) Public
2) default
3) Protected
4) Private..
2) default :--
---- there is a no keyword to represent default access specifier..
--- the member declared without using AS are represent the syntax of default
AS..
3) Protected :--
--- the member of a class declared with protected access specifier are having
scope of
within a package only..
--- but the class outside the package can also access protected members if
inheritance take
place...
--- the member of a class declare with private AS are having scope within a
class only..