Найти тему
Андрей Немериков

Яндекс ООП. Наследование

Minecraft

class BaseObject:
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z

def get_coordinates(self):
return [self.x, self.y, self.z]


class Block(BaseObject):
def shatter(self):
self.x = None
self.y = None
self.z = None


class Entity(BaseObject):
def move(self, x, y, z):
self.x = x
self.y = y
self.z = z


class Thing(BaseObject):
pass

Все ответы на Яндекс здесь https://t.me/otvetinalms

Также осуществляем помощь при решении