WMGZON/models/products/product.py

22 lines
424 B
Python
Raw Normal View History

from abc import ABC
from datetime import datetime
class Product(ABC):
'''
Base class for a product
'''
def __init__(self):
self.productID = 0
self.name = ""
self.cost = 0.0
self.category = ""
self.sellerID = 0
self.postedDate = datetime.now()
self.quantityAvailable = 0
def addToBasket():
pass
def buyProduct():
pass