Пример #1
0
    def __init__(self, productCode, description, marketPrice, rentalPrice,
                 material, size):
        inventory.__init__(
            self, productCode, description, marketPrice, rentalPrice
        )  # Creates common instance variables from the parent class

        self.material = material
        self.size = size
Пример #2
0
    def __init__(self, productCode, description, marketPrice, rentalPrice,
                 brand, voltage):
        inventory.__init__(
            self, productCode, description, marketPrice, rentalPrice
        )  # Creates common instance variables from the parent class

        self.brand = brand
        self.voltage = voltage