If we inherit a class do the private variables also get
inherited ?
Answer Posted / kishore.a
Private variables are not inherited. Access specifier
Private is mainly mean for the inheritance concept so that
derived classes cannot inherit the private members of base
class..
Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
What is writeline?
In which order the constructor is called for an inherited class?
Differentiate between method overriding from method overloading with its functionality?
What is the difference between writeline and write in c#?
What do constructors do in c#?
What are extensions in c#?
Why do we use Design Pattern in C#?
Can a constructor be static in c#?
How is method overriding different from overloading?
How do you define a predicate?
What is the difference between System.console.WriteLine() and System.console.Write() function?example?
In c#, what will happen if you do not explicitly provide a constructor for a class?
Can we maintain state in webservice?
How can I develop an application that automatically updates itself from the web?
what is c# command?