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
Explain About delegates
So what makes your code really object-oriented #?
What is .cshtml file?
Why abstract class is not instantiated in c#?
Why main method is static in c#?
What is the difference between string and string in c#?
What is returned if you pass the value 12.34 to the parsefloat () function?
In c#, what will happen if you do not explicitly provide a constructor for a class?
Define delay signing?
What is private static in c#?
What is the difference between string and stringbuilder in c#?
What is threading in c# with example?
write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )
What is the Signification of the "new " keyword in C#? example
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?