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 are the Characteristics of .NET?

1 Answers  


What is the intermediate language between asp and asp.net1.0?

0 Answers  


What is a garbage collector?

0 Answers  


1 mor thing guyz....can i go for C# directly without C++ /JAVA knowledge for dot net ..???

3 Answers  


what is the default security setting in .net?

0 Answers  






What is the root class in .net?

0 Answers  


What is common language specification (cls)?

0 Answers  


I am looking for a fast track course (MAX 15 days) in MS.NET 3.5 and SQLSERVER 2005 in hyderabad or mumbai or pune. I am working in mumbai so cannot gor for long course. Can any body suggest me the best couching class or best faculty for the same. Thanks.

2 Answers  


What's singleton activation mode in .net?

0 Answers  


can any one tel me the complete Testing Procedure of any one simple PROJECT i mean either web/windows based application?

0 Answers  


What is the managed and unmanaged code in .net?

2 Answers  


What are the security policy levels in .Net

0 Answers  


Categories