Explain the Scope of
public/private/friend/protected/protected friend.



Explain the Scope of public/private/friend/protected/protected friend...

Answer / srikanth

Public is accessible to all classes and projects.

Private is accessible only in the block that is declared.

Friend is accessible only to all classes in the current
project only.

Protected is accessible to only the class the is declared
and the class that is derived from that class.

Protected Friend is accessible to all the classes in the
current project and all classes derived from those classes.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What is reflection and what is it for?

0 Answers  


What is the difference between constants and read-only variables?

0 Answers  


When a Static Constructor called in .NET?

0 Answers  


What should you do to store an object in a viewstate?

0 Answers  


What are the different types of Classes in .NET?

0 Answers   PUCIT,






Difference between dispose and finallize method?

0 Answers  


What security measures exist for .NET Remoting in System.Runtime.Remoting?

1 Answers  


Explain the Scope of public/private/friend/protected/protected friend.

1 Answers   Wipro,


What tags do you need to add within the asp:datagrid tags to bind columns manually.

0 Answers  


What are the core differences between .NET Languages ?

0 Answers   TCS,


Explain me difference between public and static modifiers?

0 Answers  


What is delegation in .net?

0 Answers  


Categories