Skip to content
Go to file
Cannot retrieve contributors at this time
30 lines (21 sloc) 679 Bytes
""" This is the entity, Staff"""
from user_profile import Profile
class User (Profile):
def __init__(self): # a method to create objects
self.__email = ""
self.__role = "user"
self.__phone = ""
def get_email(self): # get method
return self.__email
def set_email(self, mail): # set method
self.__email = mail
# part of GoF: Factory
def get_phone(self):
return self.__phone
def set_phone(self, phone):
self.__phone = phone
# -----------------------
def get_role(self): # get method
return self.__role
def set_role(self, role): # set method
self.__role = role
You can’t perform that action at this time.