tags:

views:

18

answers:

1

If I have fnc:

class AClass
{
    void fnc() const;
};

Am I supposed to provide const modifier in UML class diagram while listing this fnc or not?

+1  A: 

The syntax is actually a little convoluted, for example:

<< query >> -fnc()

The const can be represented as a stereotype (e.g., << query >> or «query» if you have a post-1980s computer )

Michael Goldshteyn
Though if executing the behaviour `fnc` leaves the state of the system unchanged, and being `void` returns no value, does it really happen?
Pete Kirkham
@Pete yes this fnc writes a log.
There is nothing we can do