Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
""" 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