Class is a rectangle containing three compartments stacked vertically: the class’s name, the class’s attributes and the class’s operations:

The attribute section of the class is optional. The following notation is used to identificate default values in the attribute list: name : attribute type = default value
The operation section of the class is optional too. Operations are documented using the following notation: name(parameter list) : type of value returned
Abstract classes and operations are displayed using the italicized text.
Actually, UML uses a special name for classes and some other types: “classifiers.” Generally, you can think of a classifier as a class, but technically a classifier is a more general term that refers to the other three types (an interface, a data type, a component).