Stuck displaying multiple class objects

---Magazine class definition with the broken display function---
class magazine{
friend class Date;
friend class Person;
private:
person subscriber;
date subStart;
date subExpire;
public:
magazine(person subscriber, date subStart, date subExpire);
void magDisplay();
};

void magazine::magDisplay(){
cout << "\n Subscriber name: " << subscriber << "\n Start date: " << subStart << "\n End date: " << subExpire;
}

I don't know if these are needed but just in case here are the classes I have included. (These classes are working 100% as intended just can't get magDisplay working).

---Date---
class date{
private:
int month, day, year;
public:
date(int month, int day, int year);
date() : month(1), day(1), year(2000) {}
void showDate();
};

---Person---

class person{
private:
string lname, fname, zcode;
public:
person() : lname("X"), fname("X"), zcode("X") {}
person(string lname, string fname, string zcode);
void showPerson();
};
double post - please delete this thread and let's concentrate on this one:
http://www.cplusplus.com/forum/beginner/214987/#msg999893
Topic archived. No new replies allowed.