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

What is the Difference between value and reference type?

12 Answers   Wipro,


why delegate is type safe?

0 Answers   IBS,


Hai I am Shiva from TN, SSE.I have an query problem. My Table : Door Field : ID,DoorID,ZoneID,Date,Time,Status. Problem was : Status.We got two values, one is 00 (OUTTIME) , Another is 01(INTIME) Like this Status --------- 00 01 00 01 00 01 00 01 How to Set as Status 00 and 01 , of separate column , Status as Intime,Status as Outtime Like this ----------- InTime OutTime ---------- ----------- 01 00 01 00 01 00 01 00 01 00 01 00 Regards KS kumar

1 Answers  


What is the difference between console and windows application?

0 Answers  


Is c# scripting language?

0 Answers  


In which situation(s), the use of "Delegate" is a good idea?

0 Answers   MCN Solutions,


What is the purpose of static?

0 Answers  


What is writeline in c#?

0 Answers  


Explain the Scope of public/private/friend/protected/protected friend.

1 Answers   Rigel Networks, Wipro,


What are the variables in c#?

0 Answers  


What is the difference between Hash Table and Arrays?

12 Answers   IBM,


2. What happened when BO object has been called?

0 Answers   Mphasis,


Categories