2023-12-31 16:27:39 +00:00
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
|
|
|
class User(ABC):
|
|
|
|
'''
|
|
|
|
Class constructor to instatiate the base object
|
|
|
|
'''
|
|
|
|
def __init__(self):
|
|
|
|
self.id = 0
|
|
|
|
self.username = ""
|
|
|
|
self.email = ""
|
|
|
|
self.firstName = ""
|
|
|
|
self.lastName = ""
|
|
|
|
self.phone = ""
|
|
|
|
|
|
|
|
@abstractmethod
|
2023-12-31 19:03:29 +00:00
|
|
|
def login(self):
|
2023-12-31 16:27:39 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
@abstractmethod
|
2023-12-31 19:03:29 +00:00
|
|
|
def signup(self):
|
2023-12-31 16:27:39 +00:00
|
|
|
pass
|
|
|
|
|