Sequence diagram online banking system withdrawal
Deployment DiagramĪ deployment diagram puts emphasis on the configuration of runtime processing nodes and their components that live on them. The file other.cpp has compilation dependency on otherheader.h. The file priority.cpp has compilation dependency on other.cpp. Two versions of myheader.h are shown, tracing from the recent version to its ancestor.
#SEQUENCE DIAGRAM ONLINE BANKING SYSTEM WITHDRAWAL CODE#
It shows four source code files, namely, myheader.h, otherheader.h, priority.cpp, and other.cpp. The following figure shows a component diagram to model a system’s source code that is developed using C++. Representing schemas in modeling databases. Modeling configuration management of source code files while developing a system using an object-oriented programming language. Component DiagramĬomponent diagrams show the organization and dependencies among a group of components.Ĭonstructing systems through forward and reverse engineering. Object diagram is the static part of an interaction diagram.Įxample − The following figure shows an object diagram of a portion of the class diagram of the Banking System. It shows the instances of the things in a class diagram. RelationshipsĪ Bank “has–a” number of Branches − composition, one–to–manyĪ Branch with role Zonal Head Office supervises other Branches − unary association, one–to-manyĪ Branch “has–a” number of accounts − aggregation, one–to–manyįrom the class Account, two classes have inherited, namely, Savings Account and Current Account.Ī Customer can have one Current Account − association, one–to–oneĪ Customer can have one Savings Account − association, one–to–oneĪ Branch “has–a” number of Loans − aggregation, one–to–manyĪ Customer can take many loans − association, one–to–manyĪn object diagram models a group of objects and their links at a point of time. Classes in the systemīank, Branch, Account, Savings Account, Current Account, Loan, and Customer. The following figure shows the corresponding class diagram. A customer may also procure loans from the bank. However, a customer must not have more than one savings account or current account. A customer may open both a savings account and a current account. An account may be either a savings account or a current account. Each branch can have multiple accounts and loans. In each zone, one branch is designated as the zonal head office that supervises the other branches in that zone. Let us consider a simplified Banking System.Ī bank has many branches. It comprises of the classes, interfaces, and collaborations of a system and the relationships between them. Class DiagramĪ class diagram models the static view of a system. UML structural diagrams are categorized as follows: class diagram, object diagram, component diagram, and deployment diagram.