Open ronaldtse opened 4 years ago
In ucd we already have abstract class
notation, lets stick with it:
abstract class GeomFigure {}
class Circle {}
class Rectangle {}
GeomFigure <|- Circle
GeomFigure <|- Rectangle
In ucd we already have abstract class notation, lets stick with it:
OK.
I would like to make the context separator {}
optional if the class doesn't have anything to define too.
Classifier
Classifier-Notation and Semantics
Classifier-Notation and Semantics
Proposal:
class abstract GeomFigure {}
or
class GeomFigure { abstract }
class Circle {} class Rectangle {}
GeomFigure <|- Circle GeomFigure <|- Rectangle
class Circle { +radius: int {radius > 0}
show() enlarge() }