CS174: Module 12: C++ Inheritance Exercise 2 (1 pts)
Explorer
GitHub
Connect to GitHub to push and pull your project files to a repository.
On the page that opens, create a token with repo scope, copy it, then paste it below.
Paste the personal access token you created on GitHub with repo scope.
Click Refresh to load commit history
Exercise Info
Goals
Work with classes and objects in C++
Work with inheritance in C++
Instructions
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*.