Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudkat committed Nov 13, 2024
1 parent 1a7ea84 commit 546db02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/part-8/3-defining-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ assigns the balance received as an argument to the balance attribute of the obje

* The variable `self.balance` is an attribute of the object. Each `BankAccount` object has its own balance.

* The variable `balance` is a parameter in the constructor method `__init__`. Its value is set to the value passed as an argument to the method as the constructor is called (that is, when a new insctance of the class is created).
* The variable `balance` is a parameter in the constructor method `__init__`. Its value is set to the value passed as an argument to the method as the constructor is called (that is, when a new instance of the class is created).

Now that we have defined the parameters of the constructor method, we can pass the desired initial values of the data attributes as arguments as a new object is created:

Expand Down

0 comments on commit 546db02

Please sign in to comment.