Explain the Scope of
public/private/friend/protected/protected friend.
Answer Posted / 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 View All Answers
What is difference between static page and dynamic page?
What's typical about a windows process in regards to memory allocation in .net?
What is common type system (cts)?
How many namespaces are in .net version 1.1?
What is the difference between reference type and value type?
Explain what is an application domain?
What is an exe and a dll?
What should you do to store an object in a viewstate?
Explain the purpose of Remoting in .NET?
Usually in .net, the clr takes care of memory management. Is there any need for a programmer to explicitly release memory and resources? If yes, why and how?
What are pdbs?
Can I write my own .net host?
What does .net stand for?
What is lambda expressions in c#?
What is alias ? Is it used in .Net ?