Original: Using multiple inheritance partially solves this problem, as one can then define a StudentEmployee class that inherits from both Student and Employee.
Simplified: Inheritance can be used to solve different types of problems: