下列Python代码中,c.method1()和c.method2()的输出结果分别是?( )
class Parent(): def method1(self): return "Parent's method1" class Child(Parent): def method1(self): return "Child's method1" def method2(self): return super().method1() c = Child() print(c.method1()) print(c.method2())
Parent's method1
Parent's method1
Child's method1
Child's method1
Child's method1
Parent's method1
Parent's method1
Child's method1