In UML class diagrams, a class is represented by a rectangular box divided into three compartments: class name (top), attributes (middle), and operations (bottom). Option A correctly describes the basic representation as a rectangular box with the class name.