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
What are the three types of predicates?
Can we inherit abstract class in c#?
What is yield keyword?
What is Named parameter in C#?
What is the use of inheritance in c#?
How can you use abstract class and interface?
What is ienumerable <> in c#?
What is single dimensional array in c#?
Can fields inside a class be virtual?
What are desktop applications examples?
What is uint64?
How to prevent the error while updating ui control from another thread?
What is argument in c#?
What is parallel programming in c#?
Classes and structs can be declared as static, is this statement true or false?