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
Is c# scripting language?
Is hashset serializable c#?
Is there a way to force garbage collection?
write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )
What is definition in c#?
What is ienumerable t in c#?
What is cshtml extension?
What is executereader in c#?
What type is string in c#?
Which is better interface or abstract class in c#?
In .NET which is the smallest unit of execution?
what is the difference between .dll and .exe
Can we create instance of private class in c#?
What is different about switch statements in c#?
What is #region in c#?