#include "YoungPerson.h" #include YoungPerson::YoungPerson(std::string name, int age) : Person(name, age) { std::cout << "YoungPerson ctor\n"; } YoungPerson::~YoungPerson() { // Implemented purely to show that // the derived-class destructor was // being called where appropriate std::cout << "YoungPerson dtor\n"; }