To draw the class diagram for library management system and to identify the attributes and methods of those classes.
CLASS DIAGRAM:
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:
Abstract class is represented using italic fonts.
CLASSES USED IN TELEPHONE DIRECTORY:
The classes are as follows:
1)User
2)Telephone Directory
1)User
The user class consists of the following attributes.They are:
User name
User number
Place of residence
Address
Region code
The methods of the class user are:-
insert
Find and
Update
2)Telephone Directory
The Telephone Directory consists of the following attributes.They are:-
Telephone number
Yellow pages
Important place
Region codes
The methods of Telephone Directory are:-
Search
Close
Update
Insert
CONCLUSION: Thus the class diagram for the telephone directory was done and the output was verified successfully.
0 Comments