Closed ronaldtse closed 3 years ago
@ronaldtse looks good, but i would also add attribute
notation:
class Booking {
+ attribute booker: customer
}
As per #10 I think we need to allow a shorthand. The keyword "attribute" is fine, but allowing a shorthand of omitting it would be good.
As per #10 I think we need to allow a shorthand. The keyword "attribute" is fine, but allowing a shorthand of omitting it would be good.
Can you please explain the difference between typed element
and derived attribute
?
"Typed element" is an attribute that accepts only a certain "Type".
Derived attribute is an attribute that has a value produced/assigned from another place: https://www.uml-diagrams.org/derived-property.html
They are prefixed with slash /myattribute
. The following example is clear.
Implemented in repo
Typed elements
Proposal: