Access specifiers: "public", "protected", "private", nothing?

Public – any other class from any package can instantiate and execute the classes and methodsProtected – only subclasses and classes inside of the package can access the classes and methodsPrivate – the original class is the only class allowed to execute the methods

Showing Answers 1 - 1 of 1 Answers

babu

  • Apr 5th, 2006
 

Access specifiers: "public", "protected", "private",Default"

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions