Most Java developers will have heard the phrase “Java does not support multiple inheritance”, or maybe even admitted that they “wish Java supported multiple inheritance”.
A rarely asked counter-question is “Have you tried?”.
I set myself the task of creating a working implementation of multiple inheritance within Java. The requirements for a solution were:
- The inheriting class must have access to all of the inherited class methods and data.
- It must do this without using composition.
- It can