OCLOperators add
(Automatically adding template at the end of the page.)
(Adding message template to the top of the page)
Line 1: Line 1:
{{message|Write the content here to display this box}}
=== .add ( object : T ) ===
=== .add ( object : T ) ===
Adds the ''object to'' a sequence, for example, an association.
Adds the ''object to'' a sequence, for example, an association.

Revision as of 22:23, 16 June 2024

Write the content here to display this box

.add ( object : T )

Adds the object to a sequence, for example, an association.

Expression Result
self.<association of type T>.add(<object : T>) The object has been added to the existing association

Note! Add changes the sequence or association. If you want to append (add) an object to a sequence and return the result (without changing the underlying data), use ->append.

This page was edited 95 days ago on 06/17/2024. What links here