chore: Add course material
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#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";
|
||||
}
|
||||
Reference in New Issue
Block a user