This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:cprog:fall2021:projects:oop2 [2021/11/11 02:32] – [C++] zswartwo | notes:cprog:fall2021:projects:oop2 [2021/11/11 04:58] (current) – [References] hhemler | ||
---|---|---|---|
Line 17: | Line 17: | ||
=====C++===== | =====C++===== | ||
- | ====New==== | + | |
====Polymorphism==== | ====Polymorphism==== | ||
Line 132: | Line 132: | ||
Parent child relationships refer to base classes and the derived classes that inherit from them. In regards to polymorphism, | Parent child relationships refer to base classes and the derived classes that inherit from them. In regards to polymorphism, | ||
+ | |||
+ | Inheritance lets us inherit attributes and methods from another class. Polymorphism uses those methods to perform different tasks. | ||
+ | ====Similarities to word origins==== | ||
+ | It is strange that what is called ' | ||
+ | |||
+ | COOL BUG FACT: After writing this I found that " | ||
+ | |||
+ | RELEVANT COOL BUG FACT: If the child class has a child of its own, the polymorphed version of functions will be what the child' | ||
=====Program===== | =====Program===== | ||
Write a program that makes use of polymorphism. It can be anything, so long as you genuinely implement it and it works. | Write a program that makes use of polymorphism. It can be anything, so long as you genuinely implement it and it works. | ||
Line 147: | Line 155: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | * https:// | ||
=====Submission===== | =====Submission===== | ||
I'll be looking for the following: | I'll be looking for the following: |