Can you inherit private class-level variables?- Yes, they can be inherited but they are not accessible in the derived class, so it looks as if it is not inherited. - Private class-level variables can be used within a class. - It is inherited to the derived class but cannot access them on derived class.
|