Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

Explain the Scope of
public/private/friend/protected/protected friend.

Explain the Scope of public/private/friend/protected/protected friend...

Answer / 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

More Dot Net General Interview Questions

Explain something about WebService?

0 Answers   BirlaSoft,

how can i create a table from front end to back end in wabe page?

0 Answers  

Major role of CLR for CAS

2 Answers   Infosys,

Write an StoredProcedure to get the values of a column within a date range.

1 Answers   Deloitte,

Is there built-in support for logging?

0 Answers  

What is RunTime Polymorphism?

5 Answers   Deloitte, eClerx, Horizon, Intel, Pragna Technologies,

What is the native image generator?

0 Answers  

Can a try block have nested try blocks?

0 Answers  

differance between checkbox and rediobutton in

1 Answers  

Explain how to manage pagination in a page using .net?

0 Answers  

What do you mean by Code Access Security in .NET?

0 Answers  

What is strong name?

2 Answers