We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c752068 commit 87580c7Copy full SHA for 87580c7
1 file changed
Class/super.md
@@ -1,4 +1,4 @@
1
-# super() 的使用
+# 你不知道的 super
2
3
在类的继承中,如果重定义某个方法,该方法会覆盖父类的同名方法,但有时,我们希望能同时实现父类的功能,这时,我们就需要调用父类的方法了,可通过使用 `super` 来实现,比如:
4
0 commit comments