If we inherit a class do the private variables also get
inherited ?

Answer Posted / jigar

Yes, the variables are inherited but can not be accessed directly by the class interface.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c# i/o classes?

775


What are the 3 different types of arrays?

762


Can arraylist store different data types in c#?

653


How big is int16?

688


What is the difference between a method and a property?

658


What is unrecognized escape sequence in c#?

680


Is unity object oriented?

662


What can we do to handle multiple exceptions?

733


Do loops c#?

668


What is Co- and Contra-Variance in C#?

713


What is an inheritance in c#?

650


What is the default boolean value in c#?

660


What is ControlBox Propertie

742


What's the implicit name of the parameter that gets passed into the set method/property of a class?

765


How do I use the 'using' keyword with multiple objects?

699