Object Diagrams with Multiple Inheritance

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

Related Post

Comments are closed.