You can change the default visibility style for attributes and operations that appears when you add classifiers to a class diagram or create new class diagrams.
Parent topic: Customizing C/C++ UML visual development default settings
Related concepts
Visibility
Related tasks
Setting the default to show parent names
Changing the default for showing attribute and operation compartments
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