What are class access modifiers

Answer Posted / kirti

Access modifiers are keywords used to specify the declared accessibility of a member or a type. This section introduces the four access modifiers:

� Public - Access is not restricted.

� Protected - Access is limited to the containing class or types derived from the containing class.

� Internal - Access is limited to the current assembly.

� Protected inertnal - Access is limited to the current assembly or types derived � from the containing class.

� Private - Access is limited to the containing type.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain Bundle.Config in ASP.Net MVC4?

777


What are action filters?

789


what is lazy loading in entity framework?

786


Is .net framework dead?

730


What are actions in asp.net mvc?

800


What is objectcontext? : Entity framework

838


What is display mode in mvc?

757


What is object service? : Entity framework

887


Does razor engine supports for tdd?

931


What is code first? : Entity framework

776


What is .net framework used for?

774


Why to use Html.Partial in ASP.Net MVC?

802


What is model first? : Entity framework

783


What are the main components of .net framework?

762


What is the full form of sp?

701