Python 3 对象:4

Run Settings
LanguagePython
Language Version
Run Command
Live Demo #!/usr/bin/python3 class Parent: # 父类 def myMethod(self): print ('Calling parent method') class Child(Parent): # 子类 def myMethod(self): print ('Calling child method') c = Child() # 创建子类对象实例 c.myMethod() # 调用重写后的方法
Editor Settings
Theme
Key bindings
Full width
Lines