E034 Multiple Inheritance
[Previous]  [Next] 
|
User Manual [Previous]  [Next] E034 Multiple InheritanceUmple semantic error generated when multiple inheritance is encounteredUmple does not currently support multiple inheritance, in order to be consistent with code generated in Java, and also to make models simpler.
Example// The following will generate this error class P1 {} class P2 {} class Sub { isA P1, P2; } Load the above code into UmpleOnline Another Example// The following is another way of // formulating the same declarations, // also resulting in the error class P1 {} class P2 {} class Sub { isA P1; isA P2; } Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears// If all but one of the parents is // declared as an Interface, the problem is solved interface P1 {} class P2 {} class Sub { isA P1; isA P2; } Load the above code into UmpleOnline |