If we inherit a class do the private variables also get
inherited ?
Answer Posted / ashwini chavan
yes they are inherited, but cannot be accessible.because
when we inherite the class then all data member and function
member of the base class are accesed in the derive class
attomaticaly.but private specifier is accesible only it's
own class out side class can't acces that private member
when we try it then we got error
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How do I do implement a trace?
What is windows form in c#?
What does the initial catalog parameter define in the connection string?
Is xml tags are case sensitive?
What are fields in c#?
Value Type and Reference Type Data type in C#?
Is nullable type c#?
What is the advantage of constructor?
Explain dataset.acceptchanges method in .net?
What is the use of console readline () in c#?
Howmany five tracing levels in System.Diagnostics.TraceSwitcher? Why they are using?
Why do we need constructors?
Differentiate between static class and singleton instance?
Describe an interface class?
What is super class in c#?