投稿テストです。
class Person:
def __init__(self):
self.profile = f"I'm {self.getName()}. I like {self.getLike()}"
def getLike(self):
return "Apple"
def getName(self):
return "anonymous"
class Shotaro(Person):
def getLike(self):
return "Python"
def getName(self):
return "Shotaro"
shotaro = Shotaro()
print(shotaro.profile)