uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   


E011 Class is Subclass Of Self

Umple semantic error reported when a class is designated as a subclass of itself.

The inheritance hierarchy cannot have cycles. It must be a strict tree. It is therefore not allowed to make a class into a subclass of itself.


// This example generates the error message
class X {
  isA X;


Load the above code into UmpleOnline


Another Example

// The following shows how to avoid the error
class Y {}

class X {
  isA Y;


Load the above code into UmpleOnline