Pointers to Classes
int year_p, month_p, day_p;
// For the sake of example, let’s define a “date” class that
// has NO DEFAULT CONSTRUCTOR; arguments are required.
date(int day); // Constructor that takes one arg
date(int month, int day); // Another overloaded constructor
date(int year, int month, int day); // And another
date(char *datestring); // And another
date today; // Illegal -- no constructor w/ no args!
date jan1(1, 1); // Legal -- second constructor called
date *pa, *pb // These are LEGAL -- they are just pointers to
// dates, not actual instances of dates - the
// constructor is not called
pa = &jan1; // pa now points to jan1
pb = malloc(sizeof(date));// Is this correct? How do we pass args
// to a constructor while allocating mem?