If we inherit a class do the private variables also get

Q

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

✍: Guest

A
Yes, the variables are inherited but can not be accessed directly by the class interface.

2007-10-23, 6172👍, 0💬