Are private class-level variables inherited?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / basayya_swami
Yes, All the variable inherited but you donot access this
variable
Is This Answer Correct ? | 3 Yes | 1 No |
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 |
Answer / chaman
no,private class-local variable are not inherited
Is This Answer Correct ? | 0 Yes | 1 No |
Are multiple data types stored in System.Array?
What is the difference between list and array in c#?
Explain when should you call the garbage collector in .net?
Are all methods virtual in c#?
What is enum in c#?
What are circular references? How garbage collection deals with circular references.
What is garbage collection? How to force garbage collector to run?
What is an array class?
What is thread pooling?
What is the difference between array and arraylist c#?
Can a struct inherit from another struct or class in c#?
What is string pool in c#?