list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

E224 Multiple Inheritance Constraint

Umple semantic error related to putting multiple inheritance constraint on template parameters

If a multiple inheritance is applied as a constraint to a template parameter, it is detected and this error is raised. Umple does not support multiple inheritance.

Example

// In this example, there is an error
// because trait T puts multiple
// inheritance constraint on its
// template parameter TP.
trait T<TP isA C1&C2>{
  /*implementation*/
}
class C1{ 
  /*implementation*/
}
class C2{ 
  /*implementation*/
}
      

Load the above code into UmpleOnline