def __init__(self): self.server = Server('Pat') # Embed other objects self.chef = PizzaRobot('Bob') # A robot named bob self.oven = Oven()
def __init__(self): self.server = Server('Pat') self.chef = PizzaRobot('Bob') self.oven = Oven()
def __init__(self): self.server = Server("Pat") self.chef = PizzaRobot("Bob") self.oven = Oven()
def __init__(self): self.server = Server('Pat') # 服务员叫 Pat self.chef = PizzaRobot('Bob') # 机器人叫 Bob self.oven = Oven()
def __init__(self): self.server = Server('Peat') # Встроить другие обьекты self.chef = PizzaRobot('Bob') # Робот по имени Боб self.oven = Oven()
def __init__(self): self.server = Server('Ernest') self.chef = PizzaRobot('Robert') self.oven = Oven()
def __init__(self): self.server = Server('Pat') # 다른 객체를 내포시킴 self.chef = PizzaRobot('Bob') # bob이라는 이름의 로봇 self.oven = Oven()