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
How many digits are in an integer?
Does c# support multiple inheritance (mi)?
Explain the difference between the system.array.copyto() and system.array.clone()?
code for arranging given number in possible permutation ways ex:123,321,312,132,231,213.
How much time will it take to learn unity?
How does dictionary work in c#?
What are the types of delegates in c#?
Why do we need encapsulation in c#?
What is difference between array and list in c#?
What is super class in c#?
Explain the different types of delegates used in c#.
What is the components of window?
Can an int be negative c#?
What is a type c#?
What does console writeline do?