C++ class diagram

Hi,

I am new to VP UML. I would like to draw C++ class diagrams. Does VP UML support to add a method like

“const char* doSomething(const char* x, int& y)” this to a class. I have been searching but could not find a solution.

Thanks,
Lloyd

Hi Lloyd,

Please try this:

  1. Change the programming language to C++ - Tools > Configure Programming Language

  2. Create an operation doSomething.

  3. Right click on the operation and select Open Specification from the popup menu.

  4. In the General tab:

  • set Return type be char
  • set Type modifier be *
  1. In the Operation Code Details tab, check const

  2. Open the Parameters tab and add a parameter x

  3. In the General tab of parameter specification:

  • set Type be char
  • set Type modifier be *
  1. In the Parameter Code Details tab, check const

  2. Repeat step 6 to 8 to create parameter y

Feel free to post again if you have any questions.

Best regards,
Jick Yeung