#include #include "date.h" using namespace std; date::date(int init_day, int init_month, int init_year) : year {init_year}, month {init_month}, day {init_day} { cout << "constructing date "; print(); cout << "\n"; } date::date(const date& another) //"copy" constructor : year {another.year}, month {another.month}, day {another.day} { cout << "constructing date "; print(); cout << "\n"; } date::~date() { cout << "destructing date "; print(); cout << "\n"; } void date::print() const { cout << day << "/" << month << "/" << year; }