From eada9c8b0b3044d808ae7c2fe54edcb8b684805a Mon Sep 17 00:00:00 2001 From: mohamedsayed18 Date: Thu, 10 Dec 2020 18:28:50 +0300 Subject: [PATCH 1/2] fixing typo --- 19-object-oriented-programming/10_homework_03_answer.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/19-object-oriented-programming/10_homework_03_answer.txt b/19-object-oriented-programming/10_homework_03_answer.txt index bbd3689..ca319fd 100644 --- a/19-object-oriented-programming/10_homework_03_answer.txt +++ b/19-object-oriented-programming/10_homework_03_answer.txt @@ -1,4 +1,4 @@ -The semantic is wrong. There is no clear and strong has-a relationship. Never do that in inheritance +The semantic is wrong. There is no clear and strong is-a relationship. Never do that in inheritance A car is not an Engine. The car is not 4 wheels. Sometimes we can stack things like inheritance and it works for now (and be a big mess later) From 08a46b3057e22cac2d1f1a40b0ebbf347667e718 Mon Sep 17 00:00:00 2001 From: mohamedsayed18 Date: Sat, 12 Dec 2020 12:40:56 +0300 Subject: [PATCH 2/2] typo --- 19-object-oriented-programming/11_homework_01_answer.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/19-object-oriented-programming/11_homework_01_answer.txt b/19-object-oriented-programming/11_homework_01_answer.txt index 57656ec..7555bbc 100644 --- a/19-object-oriented-programming/11_homework_01_answer.txt +++ b/19-object-oriented-programming/11_homework_01_answer.txt @@ -21,7 +21,7 @@ https://stackoverflow.com/questions/3561648/why-does-c-not-allow-inherited-frien ==================== Comparing, the set of objects of a base class with its derived classes, which one is bigger? -Yhe set of objects represented by a base class typically is larger than the set of objects represented by any of its derived classes. +the set of objects represented by a base class typically is larger than the set of objects represented by any of its derived classes. For example, the base class Vehicle represents all vehicles, including cars, trucks, boats, airplanes, bicycles and so on. By contrast, derived class Car represents a smaller, more specific subset of all vehicles.