Explain about Protected and protected internal, ?internal?
access-specifier?

Answer Posted / sudhir kumar

Protected access specifier allows a class to hide its member
variables and member functions from other class objects and
functions, except the child class.
The protected access specifier becomes important while
implementing inheritance.
Protected members are not Visible to objects of other class,
or other classes outside the namespace collection,and also
not visible to objects of child classes outside the
namespace collection.


Protected access specifier allows a class to hide its member
variables and member functions from other class objects and
functions, except the child class,with in the application.
The protected access specifier becomes important while
implementing inheritance.
Protected members are not Visible to objects of other class,
or other classes outside the namespace collection,and also
not visible to objects of child classes outside the
namespace collection.

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the three types of predicates?

547


Can we inherit abstract class in c#?

588


What is yield keyword?

579


What is Named parameter in C#?

632


What is the use of inheritance in c#?

562






How can you use abstract class and interface?

614


What is ienumerable <> in c#?

549


What is single dimensional array in c#?

600


Can fields inside a class be virtual?

613


What are desktop applications examples?

582


What is uint64?

594


How to prevent the error while updating ui control from another thread?

573


What is argument in c#?

602


What is parallel programming in c#?

571


Classes and structs can be declared as static, is this statement true or false?

655