Draw the notation of class and mention the name of the compartments.
The UML notation for a class consists of the following compartments:
- Class name - The name of the class appears at the top of the class box.
- Attributes - The attributes of the class are listed in the second compartment.
- Operations - The operations (methods) of the class are listed in the third compartment.
- Visibility - The visibility of attributes and operations can be indicated with symbols such as "+" for public, "-" for private, "#" for protected, and "~" for package.
- Stereotype - Optional stereotype can be placed above the class name to provide additional information about the class.