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 is a hash table in c#?
Are classes passed by reference in c#?
What are Memory foot print of an exe?
What is the use of iqueryable in c#?
Why do we need interfaces in c#?
What is private constructor c#?
How many aware interfaces are there?
What are static and dynamic variables?
Explain the mechanism of VB.NET/C# achieve polymorphism?
What is iformatprovider in c#?
What is delegation in oops?
What is the use of delegate?
What is the difference between System.console.WriteLine() and System.console.Write() function?example?
Can int be null in c#?
What is the use of nullable types in c#?