Conference Registration 2024.07.18.04
Loading...
Searching...
No Matches
studentregistration.h
Go to the documentation of this file.
1
9#ifndef STUDENTREGISTRATION_H
10#define STUDENTREGISTRATION_H
11
12#include "registration.h"
13
14#include <QDate>
15
16
23{
24 Q_OBJECT
25
26public:
33 StudentRegistration(const Person &attendee, const QDate &bookingDate = QDate::currentDate(), const QString &qualification = "");
34
38 virtual ~StudentRegistration() override = default;
39
44 virtual double calculateFee() const override;
45
50 virtual QString toString() const override;
51
56 QString getQualification() const;
57
58private:
59 QString m_Qualification;
60};
61
62#endif // STUDENTREGISTRATION_H
The Person class represents a person with a name, affiliation, and email.
Definition person.h:20
The Registration class represents a registration for an event.
Definition registration.h:24
The StudentRegistration class represents a registration for a student attendee.
Definition studentregistration.h:23
QString getQualification() const
Gets the qualification of the student.
Definition studentregistration.cpp:36
virtual ~StudentRegistration() override=default
Default destructor for the StudentRegistration class.
virtual QString toString() const override
Converts the StudentRegistration object to a string representation.
Definition studentregistration.cpp:26
virtual double calculateFee() const override
Calculates the fee for the student registration.
Definition studentregistration.cpp:20
StudentRegistration(const Person &attendee, const QDate &bookingDate=QDate::currentDate(), const QString &qualification="")
Constructs a StudentRegistration object with the given attendee, booking date, and qualification.
Definition studentregistration.cpp:12