from Person import Person


class Teacher(Person):
    def __init__(self, name, age, title):
        super().__init__(name,age)
        self._title = title

    @property
    def title(self):
        return self._title

    @title.setter
    def title(self, title):
        self._title = title

    def teach(self, course):
        print('%s%s正在讲%s。' % (self._name, self._title, course))
