What is protected and friendly

Showing Answers 1 - 1 of 1 Answers

kmhariharan

  • Sep 15th, 2005
 

Protected:Class is declared as protected, then child classes or derived class only can access the class members(memeber variables and methods).

Friendly : Class is declared  without any access Specifiers like(public,protected) then the class is act as friendly to other classes within that Package.

  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