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


Please Help Members By Posting Answers For Below Questions

Please explain what is heap and what is stack?

565


How to use datagrid value in select statements where condition ,if cell is hyperlink bounded column?

518


What is managed code execution?

595


Different levels of priority provided by .net.

589


Explain about the features and elements present in Visual studio.NET IDE?

614






Is .net core stable?

489


I'm having some trouble with cas. How can I troubleshoot the problem?

570


Explain can the validation be done in the server side? Or this can be done only in the client side?

498


What is DTS and explain the purpose of it?

586


What is deferred execution vs. Immediate execution in linq?

564


When a Static Constructor called in .NET?

604


What are .net applications?

539


How you apply a theme in whole application in .Net?

583


What are an object and a class?

562


How does linq work?

593