0% found this document useful (0 votes)
12 views1 page

Uml For A Java Project

The document outlines a class structure for a spa management system, including classes for Customer, Appointment, Service, and specific types of services such as Massage, Facial, and BodyTreatment. Each class has attributes and methods for managing customer information, appointments, and service details. Additionally, it includes a SpecialMassage class with unique attributes related to special oils used in treatments.

Uploaded by

1nouraqq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

Uml For A Java Project

The document outlines a class structure for a spa management system, including classes for Customer, Appointment, Service, and specific types of services such as Massage, Facial, and BodyTreatment. Each class has attributes and methods for managing customer information, appointments, and service details. Additionally, it includes a SpecialMassage class with unique attributes related to special oils used in treatments.

Uploaded by

1nouraqq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Customer

name : String
email : String
phone : String

Customer(name:String,
email ; String, phone :
String)
getname(): String
getemail(): String
getphone(): String
toString() : String

Appointment Spa
Service
customer: Customer appointments : Appointment[]
name : String
services: Service[]
price : double
duration : int
Appointment Service[] Spa()
(customer:Customer) addAppointment(appointment:
Service(name:String, price: addService(service: Appointment): void
double, duration: int) Service): void removeAppointment(appointment;
getname(): String removeService(service; Appointment): void
getPrice(): double Service): void searchAppointment(CustomerName
getDuration(): int getTotalPrice() : double : String): Appointment
applyService(): void displayAppointment() :void

Massage Facial BodyTreatment

massageType : String skinType: String treatmentType: String

Massage(name:String, Facial(name:String, price: BodyTreatment(name:String,


price: double, duration: int, double, duration: int, price: double, duration: int,
massageType: String) skinType: String) treatmentType: String)
getMassageType(): String getSkinType(): String getTreatmentType(): String
applyService(): void applyService(): void applyService(): void

SpecialMassage

specialOil : String

SpecialMassage(name:String,
price: double, duration: int,
massageType: String,
specialOil: String )
getSpecialOil(): String
applyService(): void

You might also like