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

How to customize the trace output?

0 Answers  


What are the differences between an interface and an abstract class in .net?

0 Answers  


Describe difference between inline and code-behind?

0 Answers  


What is Full trust permission set in .Net

0 Answers  


What is the difference between a class and an object, and how do these terms relate to each other?

0 Answers  


what are design patterns in .net....?

2 Answers  


Explain about .Net products?

0 Answers  


what is the use of "mustinherit" keyword?

2 Answers  


what are the Goals of the UIP Application Block?

1 Answers  


What makes .net core cross platform?

0 Answers  


What is jit compilers?

0 Answers  


1.What is the major advantage of polymorphism? Please don't simply say binding. Specify any other reason.

2 Answers   247Customer,


Categories