What is an access specifier? Which two access specifier is used in a class declaration?
Question : What is an access specifier? Which two access specifier is used in a class declaration?
Access modifiers (or access specifiers) are keywords in object-oriented languages that set the
accessibility of classes, methods, and other members. Access modifiers are a specific part of
programming language syntax used to facilitate the encapsulation of components.
The public and default access specifier is used in a class declaration.