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

Is c# scripting language?

697


Is hashset serializable c#?

727


Is there a way to force garbage collection?

746


write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )

2207


What is definition in c#?

666


What is ienumerable t in c#?

655


What is cshtml extension?

716


What is executereader in c#?

677


What type is string in c#?

657


Which is better interface or abstract class in c#?

619


In .NET which is the smallest unit of execution?

858


what is the difference between .dll and .exe

758


Can we create instance of private class in c#?

704


What is different about switch statements in c#?

675


What is #region in c#?

697