You can change the default so that attribute and operation compartments do not appear when you add classifiers to a class diagram.
Parent topic: Customizing C/C++ UML visual development default settings
Related concepts
Attributes
Operations
Related tasks
Setting the default to show parent names
Changing the default visibility style for attributes and operations
Changing the default visibility style for C/C++ stereotypes
Changing the default for extracting C/C++ visualization elements
Changing the default for C/C++ visualization related elements