Skip to content

Commit 8973c2e

Browse files
authored
Update python_oop.md (#356)
"instance data and functions" together are called attributes, not methods. I believe methods are just the function part.
1 parent 6374bb3 commit 8973c2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lectures/python_oop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ In our example, an *instance* will be the name of particular *person* whose *in
192192

193193
In our example, two functions `earn` and `spend` can be applied to the current instance data.
194194

195-
Taken together, the instance data and functions are called *methods*.
195+
Taken together, the instance data and functions are called *attributes*.
196196

197197
These can be readily accessed in ways that we shall describe now.
198198

@@ -894,4 +894,4 @@ class Polynomial:
894894
```
895895

896896
```{solution-end}
897-
```
897+
```

0 commit comments

Comments
 (0)