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 |
Why ref is used in c#?
Can we declare class as protected?
What is difference between string and stringbuffer in c#?
in object oriented programming, how would you describe encapsulation?
What is GAC?
What is part of a method signature in c#?
What is polymorphism? pl explain practically rather than theoretical?
What is the difference between TypeOf, GetType and what are the uses of TypeOf, GetType.
When you inherit a protected class-level variable, who is it available to?
How do you prevent a class from being inherited?
What?s the difference between <c> and <code> XML documentation tag?
What is sqldataadapter in c#?
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)