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 is a hash table in c#?

522


Are classes passed by reference in c#?

485


What are Memory foot print of an exe?

516


What is the use of iqueryable in c#?

486


Why do we need interfaces in c#?

493






What is private constructor c#?

506


How many aware interfaces are there?

492


What are static and dynamic variables?

655


Explain the mechanism of VB.NET/C# achieve polymorphism?

550


What is iformatprovider in c#?

503


What is delegation in oops?

529


What is the use of delegate?

537


What is the difference between System.console.WriteLine() and System.console.Write() function?example?

591


Can int be null in c#?

506


What is the use of nullable types in c#?

492