Class Massage

user_7676782 avatar
user_7676782
python
01/07/2023 1:51 PM
1.1 KB
17
Indexable
class Massage:
    def __init__(self, Mass_type, date, therapist, cost):
        self.Mass_type = Mass_type
        self.date = date
        self.therapist = therapist
        self.cost = cost

    def set_Mass_type(self, Mass_type):
        self.Mass_type = Mass_type

    def set_date(self, date):
        self.date = date

    def set_therapist(self, therapist):
        self.therapist = therapist

    def set_cost(self, cost):
        self.cost = cost

    def get_Mass_type(self):
        return self.Mass_type

    def get_date(self):
        return self.date

    def get_therapist(self):
        return self.therapist

    def get_cost(self):
        return self.cost

    def __str__(self):
        return self.Mass_type + " " + self.date + " " + self.therapist + " " + self.cost
Editor is loading...