You are on page 1of 1

class attributes Responsibilities Operations

Reservation -name: string Default constructor +Reservation()


-student id: int Parameterized +Reservation(name, student id,
ic number, booking status, type
of booking, payment)
-ic number: int Set new name + setName(String):void
Get new name + getName():String
-booking status: Set new student id +setStudentId(int):void
string Get student id +getStudentId():int
-type of booking: Set new ic number +setIcNumber(int):void
string Get new ic number +getIcNumber():int
-payment: string -set payment +setPayment(String):void
-get payment +getPayment():String
set booking status +setBookingStatus(String):void
Get booking status +getBookingStatus():String
Set type of booking +setTypeOfBooking(String):void
Get type of booking +getTypeOfBooking():String
toString method +toString():String

Class Diagram

Reservation
-name: string
-student id: int
-ic number: int
-booking status: string
-type of booking: string
-payment: string
+Reservation()
+Reservation(String, int, int, String, String, String)
+ setName(String):void
+ getName():String
+setStudentId(int):void
+getName():String
+setIcNumber(int):void
+getIcNumber():int
+setPayment(String):void
+getPayment():String
+setBookingStatus(String):void
+getBookingStatus():String
+setTypeOfBooking(String):void
+getTypeOfBooking():String
+toString():String

You might also like