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

Answer Posted / ganni

yes they are inherited, but cannot be accessible. for
that we need to use properties concept.

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is concrete class in c# with example?

461


Explain the difference between Metadata and Manifest

541


Difference between Value type & reference types ? and give the example in .Net?

517


Why we use methods in c#?

553


Are string objects mutable or immutable?

524






What is a di class?

523


How many kinds of elements an array can have?

471


Which is the best language for desktop application?

468


How do you achieve polymorphism in c#?

500


Does constructor return any value in c#?

495


Why singleton class is sealed?

476


Explain About friend and Protected friend

515


Is var a data type?

492


What is appdomain in c#?

479


What are predicates in c#?

536