Hi,

This is probably gonna be something really simple! but please help..

The problem seems to be with the Registration constructor. I get a candidates are Person::Person(QString,QString,QString)

I thought that was what I was doing! Umm, there are no default constructors

I have the following headers:

Code:
class Person
{
public:

Person(QString,QString,QString);
QString getName();
QString getEmail();
QString getAffiliation();
QString toString();
private:
QString m_Name;
QString m_Email;
QString m_Affiliation;

};
class Registration: public Person
{
public:
Registration(QString,QString,QString);
Person getAttendee();
QDate getBookingDate();
double calculateFee();
QString toString()const;
private:
Person m_Attendee;
QDate m_BookingDate;
static const double STANDARD_FEE;
};
and the constructors look like this

Code:
Person::Person(QString n,QString e,QString a)
{
m_Name=n;
m_Email=e;
m_Affiliation=a;
}Registration::Registration(QString n,QString e,QString a) : m_Attendee(n,e,a)
{
m_BookingDate=QDate::currentDate();
}