Are private class-level variables inherited?

Answers were Sorted based on User's Feedback



Are private class-level variables inherited?..

Answer / guest

Yes, but they are not accessible, so looking at it you can
honestly say that they are not inherited. But they are.

Is This Answer Correct ?    7 Yes 0 No

Are private class-level variables inherited?..

Answer / sharifuddin

private class variables can access indirectly by with the
help of properties. This is the best way to access the
private variables of the private class.

It is not possible directly....

Its true upto my knowledge.
If there is any wrong can u explain?

Is This Answer Correct ?    4 Yes 0 No

Are private class-level variables inherited?..

Answer / basayya_swami

Yes, All the variable inherited but you donot access this
variable

Is This Answer Correct ?    3 Yes 1 No

Are private class-level variables inherited?..

Answer / pushparaj pentakota(anakapalli

by using properties we can access private variables but we can't inherit private class members to another class we can access.

Is This Answer Correct ?    1 Yes 0 No

Are private class-level variables inherited?..

Answer / chaman

no,private class-local variable are not inherited

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Sharp Interview Questions

Can I do things in il that I can't do in c#?

0 Answers  


Can you inherit multiple interfaces?

7 Answers   Host4Big, Mind Tree, Moftak Solutions, Siebel Systems,


Do extension methods have to be static?

0 Answers  


Is goto statement supported in C#? How about Java?

2 Answers  


How do you comment out code in c#?

0 Answers  






What are virtual methods? How are they used?

3 Answers   TCS,


Is lazy thread safe c#?

0 Answers  


What is the reason behind the invention of c#?

0 Answers  


What is a variable in c#?

0 Answers  


t name of controls, which are displayed same in all browers?

1 Answers   TCS,


What is the Difference between class and abstract class?

2 Answers  


Can you have parameters for static constructors?

0 Answers  


Categories