13 lines
359 B
C++
13 lines
359 B
C++
#include "YoungPerson.h"
|
|
|
|
#include <iostream>
|
|
|
|
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";
|
|
}
|