Recent Questions
.Net Framework : What is difference between string and stringbuilder?

What is difference between string and stringbuilder?

String is for simple string operations while StringBuilder is used to perform high manipulation stri....
Category: .Net Framework Date: 7/3/2010 1:55:44 PM
C# : Can we have a variables inside the interface?

Can we have a variables inside the interface?

No, we can have only methods, properties, indexers and enums inside the interface.
Category: C# Date: 7/3/2010 1:54:37 PM
C# : What is static class and what is use of this?

What is static class and what is use of this?

Static class we define when we do not want to create a object of class, all methods of static class ....
Category: C# Date: 7/3/2010 1:54:06 PM
OOPs Concepts : What is difference between overloading and overriding?

What is difference between overloading and overriding?

Having same name methods with different parameters is called overloading, while having same name and....
Category: OOPs Concepts Date: 7/3/2010 1:53:22 PM
.Net Framework : What is difference between Monitor.Enter and Monitor.TryEnter functions?

What is difference between Monitor.Enter and Monitor.TryEnter functions?

Monitor.Enter waits for the lock until it does not get it, while Monitor.TryEnter will request for l....
Category: .Net Framework Date: 7/3/2010 1:52:22 PM
C# Interview Questions and Answers
<< Previous Question Next Question >>
Question: 296 Page Views: 

What is the scope of a class member declared as protected?



Posted By: Avi Date: 30 October 2009 07:03:34 AM
Answer:

Class member declared as protected can be accessed either only within the same class or within the classes derived from the declaring class.


Posted By: eTechPlanet


Date: 30 October 2009 07:03:34 AM

We can declare a class as protected however its sub-classes (inherited) can only use the objects of that class then. It will not be possible to access the functions of that class with other class's objects.


Posted By: Johndecruse


Date: 17 February 2010 02:15:12 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
8wv3yE