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 new in .net core?
Why do we use msmq?
What is the best way to crack the certification?
What is the concept of inheritance and how it works in .net?
Describe session handling in a webform, how does it work and what are the limitations?
What is your observations between vb.net and vc#.net?
Explain how to redirect tracing to a file?
Is .net 4.8 backwards compatible?
What is deferred execution vs. Immediate execution in linq?
Define satelite assembly?
What are asp.net authentication providers and iis security?
What does jit compilation do in .net?
Can a try block have nested try blocks?
Can I write my own .net host?
What is common type system (cts)?