- class Narzedzia():
- def __init__(self, name, year_of_production, price):
- self.name = name
- self.year_of_production = year_of_production
- self.price = price
- class Srubokrety(Narzedzia):
- def __init__(self, name, year_of_production, price, type):
- super().__init__(name, year_of_production, price)
- self.type = type
- class Klucze(Narzedzia):
- def __init__(self, name, year_of_production, price, type):
- super().__init__(name, year_of_production, price)
- self.type = type
- class Wiertarki(Narzedzia):
- def __init__(self, name, year_of_production, price, type):
- super().__init__(name, year_of_production, price)
- self.type = type
- class Wartosc():
- def __bool__(self):
- return True
- class Srubki(Srubokrety):
- def __init__(self, type):
- super().__init__(type)
- class Wiertla(Wiertarki):
- def __init__(self, type):
- super().__init__(type)
- class Akumulator(Wiertarki):
- def __init__(self, type):
- super().__init__(type)
- srubo = Srubokrety("Topex", 2015, 20, "PÅ‚aski")