list of dots University of Ottawa logo / Université d'Ottawa

User Manual    [Previous]   [Next]   

E016 Non Immutable Superclass

Umple semantic error reported when an immutable class is defined as having a superclass that is non-immutable.

In an inheritance hierarchy, all classes must be immutable, or all non-immutable, otherwise the substitutability principle would broken.


// The following example generates the error message
// A solution is to make class X immutable
class X {
class Y {
  isA X;

Load the above code into UmpleOnline