Modifying C/C++ classes or data types

You can modify names, fields (attributes), and methods (operations) of C/C++ classes and data types from class diagrams.

You must be in the C/C++ perspective and have a classifier open in the diagram editor.
To modify a C/C++ class or data type:
  1. In the diagram editor, click the name, an attribute, or an operation of a C/C++ class or data type and double-click. This will bring up the source code editor to allow for changes.
  2. In the source code editor, type your modifications to the source code and save the file.

The changes are saved to the source code file of the C/C++ class or data type and the changes appear in the class diagram.

Related concepts
Class diagrams
Class diagrams and diagram elements
Related tasks
Creating C/C++ classes
Deleting C/C++ elements from diagrams
Adding fields to C/C++ classes and data types
Adding methods to C/C++ classes and data types
Renaming C/C++ elements
Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.