uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

E034 Multiple Inheritance

Umple semantic error generated when multiple inheritance is encountered

Umple 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

 

Another Example

// 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