class Person(object):
def __init__(self,name,sex,age):
self.name=name
self.sex=sex
self.age=age
def p(self):
return 'A'
class Student(Person):
def __init__(self,name,sex,age,score):
super(Student,self).__init__(name,sex,age)
self.score=score
def s(self):
return 'B'
class Teacher(Person):
def __init__(self,name,sex,age,subject):
super(Teacher,self).__init__(name,sex,age)
self.subject=subject
def t(self):
return 'C'
class School(Student,Teacher):
def __init__(self,name,sex,age,subject,score,myclass):
super(School,self).__init__(name,sex,age,subject,score)
self.myclass=myclass
def c(self):
return 'D'
p1=School('xiaowang','男',20,'体育','90','二班')
print(p1.c())