uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

W044 Attribute Duplicated in Superclass

Umple semantic warning reported when an attribute in a class is a duplicate of an attribute in a superclass.

The purpose of this warning is to alert the developer that they have to resolve the issue by changing the name of the duplicated attribute in either the superclass or subclass, or else remove one of them entirely. This warning will soon be changed to an error.

Example

// This example generates the warning message
class A {
  attr;
}

class B {
  isA A;
  attr;
}


      

Load the above code into UmpleOnline

 

Another Example

//This example solves the problem
class A {
  attr;
}

class B {
  isA A;
  differentAttr;
}


      

Load the above code into UmpleOnline