CS174: Module 12: C++ Inheritance Exercise 2 (1 Points)
Developed by Professor Tralie and Professor Mongan.Exercise Goals
The goals of this exercise are:- Work with classes and objects in C++
- Work with inheritance in C++
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