I can't get the **int getId() const; member function to be generated by enterprise architect
How do I specify a constant member function in enterprise architect?
I can't get the **int getId() const; member function to be generated by enterprise architect
How do I specify a constant member function in enterprise architect?
Simply select your class and hit F10 to bring up the Operations Dialog. Select the Advanced tab on the left hand side. In the Modifiers section check "Is Query"
This corresponds to the Const keyword specifying the method doesn't modify any fields.
You can read more about this form the Sparx Systems website, on their online help documentation.