In UML diagrams, you can specify whether or not to display the compartments in classifiers. You can choose to display all of the compartments in a classifier or display only selected compartments.
You can show or hide the compartments for a specific diagram or all diagrams.