What is the difference between protected and protected internal?

Answer Posted / manu

protected is really protected inside and outside the assembly (protected internal / protected external) (not allowed on top level classes)

protected internal is really public inside the assembly but protected outside the assembly (public internal / protected external) (not allowed on top level classes)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a variable and a literal?

534


Explain what are the steps for creating clr trigger?

465


Why extension method is static?

467


What are primitive types in c#?

531


What is a datacontract?

480






What is the advantage of static class in c#?

507


What is the main method in c#?

519


How can we set the class to be inherited, but prevent the method from being over-ridden?

480


What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?

561


List the differences between method overriding and method overloading?

482


what is method overloading in c#?

536


What are class fields?

503


Explain About stateless and state full web service

568


What is xaml file in c#?

530


When To use HashTable In C#

547