From 0ae155f744f9835a8128913dfd763d29e070b362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abdurrahman=20Ayy=C4=B1ld=C4=B1z?= Date: Wed, 24 Aug 2022 02:19:14 +0300 Subject: [PATCH] Update 15_day_classes.md --- 15_Day_Classes/15_day_classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/15_Day_Classes/15_day_classes.md b/15_Day_Classes/15_day_classes.md index be9e8db..ca5d7ae 100644 --- a/15_Day_Classes/15_day_classes.md +++ b/15_Day_Classes/15_day_classes.md @@ -586,7 +586,7 @@ Asabeneh Yetayeh is Finland. He lives Helsinki, 250. ### Overriding methods -As you can see, we manage to access all the methods in the Person Class and we used it in the Student child class. We can customize the parent methods, we can add additional properties to a child class. If we want to customize, the methods and if we want to add extra properties, we need to use the constructor function the child class too. Inside the constructor function we call the super() function to access all the properties from the parent class. The Person class didn't have gender but now let us give gender property for the child class, Student. If the same method name used in the child class, the parent method will be overridden. +As you can see, we manage to access all the methods in the Person Class and we used it in the Student child class. We can customize the parent methods, we can add additional properties to a child class. If we want to customize the methods and if we want to add extra properties, we need to use the constructor function for the child class too. Inside the constructor function we call the super() function to access all the properties from the parent class. The Person class didn't have gender but now let us give gender property for the child class, Student. If the same method name used in the child class, the parent method will be overridden. ```js class Student extends Person {