#include #include "date.h" #include "interval.h" using namespace std; int main() { date d1; //Initialization: call the default constructor. date d2 = d1; //Initialization: call the copy constructor. d2 = d1; //Assignment. d2.next(10); interval i1(d1, d2);//Initialization: call the two-arg constructor. interval i2 = i1; //Initialization: call the copy constructor. i1 = i2; //This assignment won't compile. return EXIT_SUCCESS; }