I am currently learning for the OCUP UML Fundamental exam. While reading the book i found something strange about operations.
The semantics of an operation:
[visibility] name (parameter list)[:type][{property strings}]
now there are the following examples:
- getPoistion(return x: int, return y: int)
- enlarge(byFactor: Real) : GeomFigure
- +addPhone(phone:String)
- deposit(in amount, Amount): Amount
- #release(): contractStatus
- "create"create()
The last one i think is odd. Can someone explain me why this is allowed? Since the only semantics that is allowed before the name is a visibility modifier.
Kind regards,
Wim