A class describes a set of objects with similar structure, behavior, and relationships. A class is defined by various properties, including, most notably, attributes and methods.
The class is drawn as a rectangle with four compartments separated by horizontal lines.
1 The name of the class and all general properties of the class, including its class stereotype and whether it is an abstract class.
4 A description of the Persistence property of the class (see Persistence).
By default, this compartment is turned off. To turn it on, right‑click any class on a Class diagram, and then click Display Mode. Select Persistence, and then click OK. This compartment is an extension to the UML specification.