アクセッサー

class Car:
  @property
  def name(self):
    return self.__name

  @name.setter
  def name(self, value):
    self.__name = value

c = Car()
c.name = "TOYOTA"
print(c.name)