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 is the compiler of c#?
what is the difference between a struct and a class in c#?
Can a static class have a constructor c#?
Structs are largely redundant in c++. Why does c# have them?
When static constructor is invoked?
What are the different types of assembly?
In object oriented programming, how would you describe encapsulation in c#?
Can extension methods access private members?
What is tuple in c#?
What are the characteristics of c#?
Is c# int immutable?
Give an example of a ctype.