Class diagram is referred to as object modeling. It is the main static diagram; it shows the static structure of the model.
A class diagram is drawn as a collection of classes and their relationship connected as a group to each other and to their contents.
A class is drawn as a rectangle with three components separated by horizontal line. The top name compartment holds class name. The middle compartment holds general properties of the class. The bottom compartment holds the list of operations or methods.
Abstract class is represented using italic fonts.
CLASSES USED IN TELEPHONE DIRECTORY:
The classes are as follows:
The user class consists of the following attributes.They are:
Place of residence
The methods of the class user are:-
The Telephone Directory consists of the following attributes.They are:-
The methods of Telephone Directory are:-
CONCLUSION: Thus the class diagram for the telephone directory was done and the output was verified successfully.