UML class diagrams display three compartments in a class box: name (top), attributes (middle), and operations/methods (bottom). Derived classes are shown separately with inheritance arrows, not inside the parent class. This standardized format makes class structure immediately visible.