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

Why do we use threads in c#?

505


What is Implementation inheritance

510


Can we create instance of private class in c#?

492


What is a collection class in c#?

470


What is join in c#?

471






In how many ways you can overload a method?

582


What is the difference between early binding and late binding in c#?

494


Why do we use Design Pattern in C#?

570


How is a strongly-named assembly different from one that isn’t strongly-named?

601


Does the variables of a private class-level inherited?

551


What is meant by clr?

561


What is selector c#?

504


How to update the gui from another thread in c#?

550


What is cosole application?

562


What is interpolation in programming?

481