Skip to content

Commit 87580c7

Browse files
committed
update super
1 parent c752068 commit 87580c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Class/super.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# super() 的使用
1+
# 你不知道的 super
22

33
在类的继承中,如果重定义某个方法,该方法会覆盖父类的同名方法,但有时,我们希望能同时实现父类的功能,这时,我们就需要调用父类的方法了,可通过使用 `super` 来实现,比如:
44

0 commit comments

Comments
 (0)