new and Constructors
int year_p, month_p, day_p;
date(int month, int day);
date(int year, int month, int day);
date *pa, *pb, *pc, *pd, *pe, *pf, *pg;
pa = new date; // ERROR -- no constructor available
pb = new date(31); // ok; calls 1st constructor
pc = new date(4, 31); // ok; calls 2nd constructor
pd = new date(1994, 3, 24); // ok; calls 3rd constructor
pe = new date(“June 1st”); // ok; calls 4th constructor
pf = new date(1996); // wrong, but compiler won’t tell you
pg = new date(“June 31st”, 1991); // ERROR - no constructor