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

Answer Posted / rathika

It will be inherited but cannot be accessible.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is namespace a class?

575


Is null in c#?

569


Explain the difference between passing parameters by value and passing parameters by reference with an example?

594


Do extension methods have to be static?

622


What is the meaning of int parse in c#?

582






How does bitwise work?

597


What namespace is list in c#?

570


What is dynamic dispatch?

625


Which types of inheritances does c# support?

542


Is c# slower than java?

556


What is polymorphism and its types in c#?

534


What is different between Static Constructor and Private Constructor?

543


What is regex c#?

582


What is delegate in c#?

621


What does f mean in c#?

590