When you inherit a protected class-level variable, who is
it available to?
Answers were Sorted based on User's Feedback
Answer / raja chandrasekaran
Protected class level variables can be accessed with in the
same class and accessed by the derived classes.Derived
classes can be in different assembly also. Even the
variables are private, it will be derived into the child
class. But the thing is, it is not accessible due to its
protection level.
Is This Answer Correct ? | 6 Yes | 5 No |
Answer / p.sahoo
Protected Class Variables Are Always Inherited in it's
derived classes.
But in the namespace it confused to me because in a
namespace we can set any type of modifiers.
Is This Answer Correct ? | 0 Yes | 6 No |
How can I get around scope problems in a try/catch?
What is gac? How to put assembly in gac?
What can I create with c#?
How big is a float?
Can You Prevent Your Class From Being Inherited By Another Class?
Any exceptions are there which are not caught by any catch blocks? what are they?
What is writeline in c#?
What is the Difference between directcast and ctype?
What does int32 mean?
Compare and contrast between the System.Array.CopyTo() and Clone()?
Distinguish between a class and struct?
Why do we use abstraction in c#?