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 the difference between do and while loop?
What are different types of Delegates in C#?
Is inheritance possible in c sharp?
What is the difference between xml documentation tag?
Which is better python or c#?
Why do we use parameters in c#?
What is the .net datatype that allows the retrieval of data by a unique key?
What is lastindexof c#?
Explain the difference between a namespace and assembly name in .net?
What exactly is serverless?
what is a enumeration in c#
What are destructors in C#?
What is the difference between integer and double?
Is it possible to execute multiple catch block for a single try statement?
What is wpf c#?