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 differences between datagrid, datalist and repeater in .net?

0 Answers  


int i = 1; int j = 1; System.Console.WriteLine(i == j); System.Console.WriteLine(i.ToString() == j.ToString()); System.Console.WriteLine((object)i == (object)j); Give the sample code above, what is the output to the console?

5 Answers  


FOR EXAMPLE : CLASS Dotnet { } creating object: Dotnet dn=new Dotnet(); NOW THE QUESTION IS WHICH IS CALLED AS OBJECT ?EITHER dn OR new Dotnet() and CAN YOU PROVE YOUR ANSWER?????PLEASE REPLY...

1 Answers  


What is difference between const and static in c#?

0 Answers  


Can you prevent your class from being inherited and becoming a base class for some other classes?

5 Answers  


What is the advantage of constructor?

0 Answers  


How objects are stored in memory?

0 Answers  


What is asynccallback c#?

0 Answers  


What is an example of delegation?

0 Answers  


Explain circular reference in c#?

0 Answers  


How long does it take to learn c# for unity?

0 Answers  


What are the Types of instancing properties and explain each. Explain the difference between multiuse,singleuse and globalmultiuse and which is default

0 Answers   DELL,


Categories