From 546db024a3820a1f3093be24b781b2d871a07399 Mon Sep 17 00:00:00 2001 From: Timo Paloneva Date: Wed, 13 Nov 2024 12:24:59 +0200 Subject: [PATCH] fix typo --- data/part-8/3-defining-classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/part-8/3-defining-classes.md b/data/part-8/3-defining-classes.md index 2e8836310..8dbdad8cc 100644 --- a/data/part-8/3-defining-classes.md +++ b/data/part-8/3-defining-classes.md @@ -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: