CS174: Module 12: C++ Inheritance Exercise 2 (1 Points)

Developed by Professor Tralie and Professor Mongan.

Exercise Goals

The goals of this exercise are:
  1. Work with classes and objects in C++
  2. Work with inheritance in C++
Change the code in the Person class so that runtime polymorphism is achieved on the celebrateBirthday() method in the Button class, even when we hold a reference to a button object that's Person*.
Welcome to our online modules system! Be sure to log in with your Urinus ID before you proceed. For example, Professor Tralie's ID is ctralie. If you are not an Ursinus student, that's fine! Just make something up, and you can still run everything