What is an access specifier?Which two access specifier is used in a class declaration?
pls don't spam..
Answers
Answered by
4
But, the classes and interfaces themselves can have only two access specifiers when declared outside any other class. We cannot declare class/interface with private or protected access specifiers. For example, following program fails in compilation. Note : Nested interfaces and classes can have all access specifiers.
Answered by
2
Explanation:
the classes and interfaces themselves can have only two access specifiers when declared outside any other class. We cannot declare class/interface with private or protected access specifiers. For example, following program fails in compilation. Note : Nested interfaces and classes can have all access specifiers.
Similar questions