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 the difference between task and thread in .net?
Explain what is the difference between response.redirect & server.transfer?
Differences between namespace, class, assembly?
Is .net a compiler?
How to view a .NET assembly?
Write the .net syntax for 'for loop'?
What is the use of activex control in .net?
What is singleton activation mode in .net?
What is immutability?
Define satelite assembly?
Explain me difference between public and static modifiers?
What are the improvements made in cas in .net 4.0?
One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?
What is the root class in .net?
Please explain what garbage collection is and how it works. Provide a code example of how you can enforce garbage collection in .net?