Let's say I want to create two classes Owner and Pet
class Owner(object): def __init__(first_name, last_name, address, phone): self.first_name = first_name self.last_name = last_name self.address = address self.phone = phone class Pet(object): def __init__(name, owner) self.name = name self.owner = Owner.__init__(first_name, last_name, address, phone)
Did I pass the class Owner as a parameter to the class Pet correctly or not? If not, then how is it done properly? Thanks.