// cdt.h   Experiments with constructors and destructors including 
//         inheritance.
//
//        When are they called?   P. Conrad for CISC220 06J

#ifndef CDT_H
#define CDT_H

#include <iostream>
using std::ostream;

#include "foo.h"

#include "cd.h"

#include "time.h"

class Cdt_C : public CD_C
{
 public: 
  Cdt_C(int theX, const char * const theLabel, int theHour, int theMin);
                   // (13) ordinary constructor
  Cdt_C(); // (14) default constructor
  
  
  // big-3
  Cdt_C(const Cdt_C & orig); // (15)
  Cdt_C & operator = (const Cdt_C & right); // (16)
  ~Cdt_C(); // (17)

  void print(ostream & out) const
    {
      CD_C::print(out);
      out << " " << t;
    }; 

 private:
  Time_C t;
  
};

ostream & operator << (ostream & left, const Cdt_C & right); // (18)

#endif







