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
Explain the types of Polymorphism.
How many static constructors are allowed in a class?
What is a long in c#?
Can partial class be inherited?
Whats an assembly? Describe the importance of assembly?
Describe ways of cleaning up objects in c#.
Does unity use c++ or c#?
Can int be null c#?
Define encapsulation?
Can an interface extend a class c#?
Explain metadata in c#.
What is a di class?
Why do we need to call CG.SupressFinalize?
What does .length do in c#?
How to reduce image resolution in C#?