| 
      
        
         E011 Class is Subclass Of Self 
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
           [Previous]   [Next]    
     | 
    ![]()  | 
      
                 User Manual [Previous]  [Next] E011 Class is Subclass Of SelfUmple 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. Example
// This example generates the error message
class X {
  isA X;
}
      
Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears
// The following shows how to avoid the error
class Y {}
class X {
  isA Y;
}
      
Load the above code into UmpleOnline  |