ABSTRACT

This chapter discusses the creation of a basic class diagram. Classes in practice are not standalone entities–rather, they continuously interact with each other. A group of such collaborating classes appears in a class diagram. Thus, class diagrams are made up of classes, their attributes and operations, class-to-class relationships, stereotypes, multiplicities, and notes. The following four class diagrams are presented for the Hospital Management System: patient details class diagram, staff details class diagram, consultation class diagram, and accounting class diagram. As with all design-level class diagrams, this diagram shows not only all the entity classes that are used in processing information but also the classes that are responsible for interacting with the user and the classes that represent databases. Once again, in practice, it is not feasible and not aesthetically pleasing to show all classes required in the design in one class diagram. Hence, small parts of the design are shown in each class diagram.