You may change the diagram or use interfaces to achieve this prototype. In Java you can't use Multi-Inheritance.