Skip to content

Commit dc023a0

Browse files
committed
fix discussion #19: the method of base class get and arguments passed in, rather than being passed
1 parent aa282a3 commit dc023a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

14.oop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ how_many = classmethod(how_many)
169169

170170
相反,如果我们_没有_在一个子类中定义一个 `__init__` 方法,Python 将会自动调用基类的构造函数。
171171

172-
我们会观察到,我们可以通过在方法名前面加上类名作为前缀,再将其传入 `self` 和其余变量中,来调用基类的方法。
172+
我们会观察到,我们可以通过在方法名前面加上基类名作为前缀,再传入 `self` 和其余变量,来调用基类的方法。
173173

174174
在这里你需要注意,当我们使用 `SchoolMember` 类的 `tell` 方法时,我们可以将 `Teacher``Student` 的实例看作 `SchoolMember` 的实例。
175175

@@ -198,4 +198,4 @@ how_many = classmethod(how_many)
198198

199199
[^5]: 沈洁元译本译作“导出类”。
200200

201-
[^6]: 此处的类即派生类或子类。
201+
[^6]: 此处的类即派生类或子类。

0 commit comments

Comments
 (0)