When you inherit a protected class-level variable, who is
it available to?

Answers were Sorted based on User's Feedback



When you inherit a protected class-level variable, who is it available to?..

Answer / guest

Classes in the same namespace.

Is This Answer Correct ?    11 Yes 5 No

When you inherit a protected class-level variable, who is it available to?..

Answer / jothimani

its sub class variable

Is This Answer Correct ?    6 Yes 2 No

When you inherit a protected class-level variable, who is it available to?..

Answer / prabakar

its subclass variable

Is This Answer Correct ?    4 Yes 3 No

When you inherit a protected class-level variable, who is it available to?..

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

When you inherit a protected class-level variable, who is it available to?..

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

Post New Answer

More C Sharp Interview Questions

How cache is implemented in web application for DB queries?

2 Answers   TCS,


What is data quality assurance?

0 Answers  


What is private virtual in C#?

0 Answers   CDC,


What are cshtml files?

0 Answers  


A->B->C (EXTENDS) How the constructors are called when we created an object of C

3 Answers   Karur Vysya Bank KVB,






What is datasource c#?

0 Answers  


What is the reason behind the invention of c#?

0 Answers  


What is the purpose of the integer parse method the decimal parse method?

0 Answers  


1. What is lazy loading? 2. What is delay signing? 3. How to transfer view object to presenter in MVP? 4. How to create a generic class? 5. What is Ajax object? 6. What is explicit interface implementation? 7. I1, I2 interfaces have same methods (say PrintName) explicitly implemented in class C1. Now how to call PrintName method from I1? 8. I have a list of Customers. List the customer with maximum orders using LINQ.

1 Answers   Aptron, Volvo,


Is java better than c sharp?

0 Answers  


Why do we use inheritance in c#?

0 Answers  


hi i m bhawna ,a student of mca want to know about what type of technical question has been asked in an interview of mnc's like HCL,TCS,WIPRO

1 Answers   HCL,


Categories