// Code derived from Stroustrup's PPP2 book// § 9.4.5 Referring to the current object// -and beginning on p 317#include<iostream>usingstd::cout;classDate{public:Date(intyy,intmm,intdd):y{yy},m{mm},d{dd}{// . . .}voidadd_day(intn){d+=n;}// naiveintyear(){returny;}intmonth(){returnm;}intday(){returnd;}// ...private:inty,m,d;// year, month, day};voidf(Dated1,Dated2){cout<<d1.month()<<' '<<d2.month()<<'\n';}intmain(){Datea{1994,03,29};Dateb{2000,02,15};f(a,b);}