If we inherit a class do the private variables also get
inherited ?
Answers were Sorted based on User's Feedback
Answer / rathika
It will be inherited but cannot be accessible.
| Is This Answer Correct ? | 12 Yes | 1 No |
Answer / 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 |
What are the generation of Garbage Collection in C# .NET ?
Can c# inherit multiple classes?
In Main function another function is there and to that function if we pass string as parameter ,then that string value is passed by value or reference type?
How does dependency injection work c#?
Which types of inheritances does c# support?
What is thread and explain states of a thread in c#?
How do we achieve encapsulation in c#?
What is a string c#?
What is the difference between cookies and session?
7 Answers ADITI, Infinity, Infotech, VBV, Web Connect,
Is c# code is unmanaged or managed code?
Is it good to use var in c#?
What is Dispose method in .NET?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)