Skip to content

fixing typo #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 19-object-oriented-programming/10_homework_03_answer.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion 19-object-oriented-programming/11_homework_01_answer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down