Object Diagrams with Multiple Inheritance

Below is an example of implementation of multiple inheritance –

The Class ‘Universal’ inherits from two classes A/ and D/C, thus exhibiting multiple inheritance. Mutiple inheritance could be avoid by creating new class as below –

Universal Motors run both under A/C and D/C

Add a Comment

Your email address will not be published. Required fields are marked *