You as a Java developer asked to design using object-oriented approach. Consider the following
case scenario for designing the UML class diagram. The problem is tattoo design travel agency
system for foreign visitors to make ease for travelling to Pakistan. The system has two types of
trips that is public and private trip. The public trip uses the bus booking whereas private trip uses
the car booking. The trip information and schedule are saved for detail information of the trip.
Use payment to save the status of payments.
Consider travel guide, public trip, private trip, bus booking, car booking, trip information,
schedule and payment for the object-oriented design which may involve aggregation,
composition, generalization or specialization. Also, identify the attributes and behavior for each
Answers
Answer:
You as a Java developer asked to design using object-oriented approach. Consider the following
case scenario for designing the UML class diagram. The problem is tattoo design travel agency
system for foreign visitors to make ease for travelling to Pakistan. The system has two types of
trips that is public and private trip. The public trip uses the bus booking whereas private trip uses
the car booking. The trip information and schedule are saved for detail information of the trip.
Use payment to save the status of payments.
Consider travel guide, public trip, private trip, bus booking, car booking, trip information,
schedule and payment for the object-oriented design which may involve aggregation,
composition, generalization or specialization. Also, identify the attributes and behavior for each