10) e. Multiple Inheritance

You can also take it a step further and inherit methods and attributes from multiple classes. Take a look at the following example.

1
2
3
4
Output:
James
Electrical Engineering
Intel

We have two base classes: Student and Employee. Our derived class Intern inherits from both of these because intern is still a student but is currently also an employee. That means that an Intern has access to all of the attributes and methods that Student and Employee have.