Computer Science, asked by Blinky205, 27 days ago

What is an access specifier?Which two access specifier is used in a class declaration?

pls don't spam.. ​

Answers

Answered by powarpranav1986
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 taetae26
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
Math, 13 days ago