If we inherit a class do the private variables also get
inherited ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are logical operators in c#?

526


Why interface is required?

465


What is strong data type in c#?

485


What do you mean by thread safe in c#?

471


Is it possible to nest cfml conditional tags?

544






Why do we need collections in c#?

471


Why do we use 0?

504


What is the meaning of MSIL?

666


What is the use of console readkey ()?

490


What is thread in c#?

549


how to create crystal reports give one detail example(i want to view age category report) please give suitable example in my small knowledge

1633


Explain what a diffgram, and a good use for one Define diffgram? How it be used?

552


What is the solution if you need to manipulate sets of items?

470


What is a void c#?

510


Is null == null c#?

480