Class diagrams consists of a rectangle divided into three se…
Class diagrams consists of a rectangle divided into three sections, where the top section contains the name of the class, the middle section contains the names and data types of the attributes, and the bottom section contains the methods.