これでKodomoと出力される
class Oya(object):
def __init__(self):
print(type(self).__name__)
class Kodomo(Oya):
def __init__(self):
super().__init__()
child = Kodomo()
Go to list of users who liked
More than 3 years have passed since last update.
これでKodomoと出力される
class Oya(object):
def __init__(self):
print(type(self).__name__)
class Kodomo(Oya):
def __init__(self):
super().__init__()
child = Kodomo()
Register as a new user and use Qiita more conveniently
Go to list of users who liked