Class student

 avatar
user_7676782
python
2 years ago
2.1 kB
2
Indexable
Never
class Student:
    def __init__(self, first_name, last_name, gender, faculty, degree, year, specialization, telephone_num,
                 medical_condition):
        self.medical_condition = medical_condition
        self.telephone_num = telephone_num
        self.specialization = specialization
        self.year = year
        self.degree = degree
        self.faculty = faculty
        self.gender = gender
        self.first_name = first_name
        self.last_name = last_name

    def set_first_name(self, first_name):
        self.first_name = first_name

    def set_last_name(self, last_name):
        self.last_name = last_name

    def set_gender(self, gender):
        self.gender = gender

    def set_faculty(self, faculty):
        self.faculty = faculty

    def set_degree(self, degree):
        self.degree = degree

    def set_year(self, year):
        self.year = year

    def set_specialization(self, specialization):
        self.specialization = specialization

    def set_telephone_num(self, telephone_num):
        self.telephone_num = telephone_num

    def set_medical_condition(self, medical_condition):
        self.medical_condition = medical_condition

    def get_first_name(self):
        return self.first_name

    def get_last_name(self):
        return self.last_name

    def get_gender(self):
        return self.gender

    def get_faculty(self):
        return self.faculty

    def get_degree(self):
        return self.degree

    def get_year(self):
        return self.year

    def get_specialization(self):
        return self.specialization

    def get_telephone_num(self):
        return self.telephone_num

    def get_medical_condition(self):
        return self.medical_condition

    def __str__(self):
        return self.first_name + " " + self.last_name + " " + self.gender + " " + self.faculty + " " + self.degree + " " + self.year + " " + self.specialization + " " + self.telephone_num + " " + self.medical_condition