Hotel Booking System - case study
Object-Oriented design and analysis
- We should design the following things
- classes
- database
- attributes in of the class and database
- methods in the class
- In the design process, start think of candidate classes and then database tables
- Class persistence is achieved by database table
Use case
Use case of a hotel booking system may include
Noun analysis
- Identifying nous in requirement helps to discover class names.
- Nouns in requirement may lead to classes name or attributes name or nothing.
- Attributes is inferred from document.
OO analysis
Complete the class diagram: - Includes attributes - Relationship to other classes - Add method according to responsibility