Professional Documents
Culture Documents
• How does the supermarket operates in the background is explained with the help
of OOD concepts and techniques.
USE CASE DIAGRAM
• Use case diagrams specify the events of a system and their flows.
• The relationships between and among the actors and the use cases are made.
SIMPLE USE
CASE
DIAGRAM
COMPLETE
USE CASE
DIAGRAM
• Both the Admin and Cashier will have access to Log in
• It shows a set of objects and the messages sent and received by those objects.
CASHIER SEQUENCE
• They are the only UML diagrams, which can be mapped directly with object-
oriented languages.
DESIGN PATTERNS
We have used the following Design Patterns:
• Singleton Pattern
• Strategy Pattern
• Observer Pattern
SINGLETON
• Used to ensure that only one instance of a particular class ever gets created
We have used this in inventory class so that only one object of an item is created.
STRATEGY
• Strategy lets user choose multiple strategies on run time.
We have used this in Payment class. It will let user choose whether to pay cash or pay from card.
OBSERVER
• The observer pattern allows objects to keep other objects informed about events occurring
within a software system
We have used this in Inventory and supply chain classes. Inventory will observe supply chain.
THANK YOU