Files
cppcourse/397/SolutionEx61Part2/YoungPerson.cpp
T
2026-10-05 11:27:21 +02:00

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";
}