Harikrishna Gorrepati wrote:Hi, Why a regular class cannot be protected.
You can use the same modifiers for inner classes that you use for other members of the outer class. For example, you can use the access specifiers — private, public, and protected — to restrict access to inner classes, just as you do to other class members.
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
posted 8 years ago
Hi Abimaran, I am not clear. I am referring basic helloworld class which cannot have protected access specifier. what is the reason.