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
What is bitwise operator in c#?
Is for loop faster than foreach?
How do I unload an application domain?
How to create events for a control? What is custom events? How to create it?
Explain the difference between Response.Write () and Response.Output.Write ().
What language do desktop applications use?
Enlist some of the properties of a thread class?
What is the difference between string and stringbuilder in c#?
What is overloading in c#?
What all details the assembly manifest will contain?
What is property in c#?
What is predicate builder?
What is the data provider name to connect to access database?
Is c# still popular?
Can enum have methods c#?