Conference Registration 2024.07.18.04
|
The StudentRegistration class represents a registration for a student attendee. More...
#include <studentregistration.h>
Public Member Functions | |
StudentRegistration (const Person &attendee, const QDate &bookingDate=QDate::currentDate(), const QString &qualification="") | |
Constructs a StudentRegistration object with the given attendee, booking date, and qualification. | |
virtual | ~StudentRegistration () override=default |
Default destructor for the StudentRegistration class. | |
virtual double | calculateFee () const override |
Calculates the fee for the student registration. | |
virtual QString | toString () const override |
Converts the StudentRegistration object to a string representation. | |
QString | getQualification () const |
Gets the qualification of the student. | |
Public Member Functions inherited from Registration | |
virtual | ~Registration ()=default |
Destructor. | |
Person | getAttendee () const |
Get the attendee associated with the registration. | |
QDate | getBookingDate () const |
Get the booking date of the registration. | |
void | setBookingDate (const QDate &newBookingDate) |
Set the booking date of the registration. | |
Additional Inherited Members | |
Static Public Attributes inherited from Registration | |
static constexpr double | STANDARD_FEE = 100.00 |
Protected Member Functions inherited from Registration | |
Registration (const Person &attendee, const QDate &bookingDate) | |
Constructor. | |
The StudentRegistration class represents a registration for a student attendee.
This class inherits from the Registration class and adds additional functionality specific to student registrations.
StudentRegistration::StudentRegistration | ( | const Person & | attendee, |
const QDate & | bookingDate = QDate::currentDate(), | ||
const QString & | qualification = "" ) |
Constructs a StudentRegistration object with the given attendee, booking date, and qualification.
attendee | The person attending the registration. |
bookingDate | The date of the registration booking. Defaults to the current date. |
qualification | The qualification of the student. Defaults to an empty string. |
|
overridevirtual |
Calculates the fee for the student registration.
Implements Registration.
QString StudentRegistration::getQualification | ( | ) | const |
Gets the qualification of the student.
|
overridevirtual |
Converts the StudentRegistration object to a string representation.
Reimplemented from Registration.