// date.h   A simple date class for use with the Baseball database
// P. Conrad, for CISC220, 06J

#ifndef DATE_H
#define DATE_H

#include <iostream>
// no using namespace std; here; instead, explicitly use std::

class Date_C
{
 public: 

  Date_C (const int y, const int m, const int d);  
  void print(std::ostream & out = std::cout) const;
  int getYear() const  { return year; }
  int getMonth() const { return month; }
  int getDay() const  { return day; }

 private:

  int year;
  int month;
  int day;

};

// show error that results when leaving off the semicolon 
// and trying to compile date.cc


#endif

