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 web.config in .net?
Describe session handling in a webform, how does it work and what are the limitations?
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?
What are the different types of Classes in .NET?
Different between .net & j2ee ?
SAP Business One(this is intigrated tool of .net)
What is assembly in .net?
object is physical and class is logical..here class is not occupying any memory as our definition of class but i got a question then the class where it stores if it is not occupying any memory....
What is difference between static page and dynamic page?
What are the new 2.0 features useful for?
How do I spawn a thread?
State the various features present in .NET?
What is a variable of implicit type and what is its scope?
Difference between abstract class and interface in .net?