|
E080 Invalid Abstract Class Association
[Previous]  [Next] 
|
![]() |
User Manual [Previous]  [Next] E080 Invalid Abstract Class AssociationUmple semantic error raised when an association with an abstract class forces instantiation of an objectAn association with an abstract class must either be a directed association or must have a multiplicity with lower bound
of zero at both ends. This is necessary to prevent situations where it would be needed to instantiate the abstract class (which
is never allowed). Example
//Class A contains an association
//with abstract class B, causing
//the error by using mandatory
//multiplicity
class A {
1 -- 1 B;
}
abstract class B{
abstract;
}
Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears
//The following association does not
//cause the error
class A {
0..1 -- 0..1 B;
}
abstract class B{
abstract;
}
Load the above code into UmpleOnline |