class A:
def __init__(self, cost):
self.cost = cost
class B(A):
def __init__(self):
super().__init__(50)
print(self.cost)
B()
לייק 1
class A:
def __init__(self, cost):
self.cost = cost
class B(A):
def __init__(self):
super().__init__(50)
print(self.cost)
B()