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


#include "date.h"

// Use of const here helps avoid the "inversion error"
// where we accidentally write y = year; m = month; d = day;
// Beleive it or not, that is a common error among beginner and 
// experienced programmers alike.

Date_C::Date_C(const int y, const int m, const int d)
{
  year = y;
  month = m;
  day = d;
}

void Date_C::print(std::ostream & out) const
{
  out << month << "/" << day << "/" << year;
}
