---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();
};
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();
};