New answers tagged

0

Calling self.customer.name and bypassing the objects interface is the same as passing the name into the constructor. If you properly encapsulated the customer object and passed it to the Bill would be the best solution since you would be programming to their interfaces. class Customer: def __init__(self, name, surname, email): self.name = name ...


Top 50 recent answers are included