class BuildingUnit(Unit): def __init__(self, name, hp, location): #Unit.__init__(self, name, hp, 0) super().__init__(name, hp, 0) self.loction = loction
Unit.__init__() 와 super().__init__()는 같은 의미임. super()는 다중 상속일때 먼저 상속 받은 class __init__ 실행