Are private class-level variables inherited?

Yes, but they are not accessible, so looking at it you can honestly say that they are not inherited. But they are.

Showing Answers 1 - 4 of 4 Answers


  • Jan 9th, 2006

Private members of the base class are not directly available to the derived class, so we can say that they are not inherited.

However the private variables can be manipulated via the base class methods which are declared as protected or public.

  Was this answer useful?  Yes


  • Aug 12th, 2010

All members are inherited from the base class except for instance and static constructors and destructors. Inherited private members are inaccessible unless the subclass is nested in the base class.

  Was this answer useful?  Yes

Rajendra Mahakali

  • Jun 29th, 2017

YES, But they are accessible. Although they are not visible or accessible, but YES they are inherited.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions