Conference Registration 2024.07.18.04
|
The StandardRegistration class represents a standard registration for an event. More...
#include <standardregistration.h>
Public Member Functions | |
StandardRegistration (const Person &attendee, const QDate &bookingDate=QDate::currentDate()) | |
Constructs a StandardRegistration object with the given attendee and booking date. | |
virtual | ~StandardRegistration () override=default |
Destroys the StandardRegistration object. | |
virtual double | calculateFee () const override |
Calculates the fee for the standard registration. | |
virtual QString | toString () const override |
Returns a string representation of the StandardRegistration object. | |
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 StandardRegistration class represents a standard registration for an event.
This class inherits from the Registration class and provides additional functionality specific to standard registrations.
StandardRegistration::StandardRegistration | ( | const Person & | attendee, |
const QDate & | bookingDate = QDate::currentDate() ) |
Constructs a StandardRegistration object with the given attendee and booking date.
attendee | The person attending the event. |
bookingDate | The date of the booking. Defaults to the current date. |
|
overridevirtual |
Calculates the fee for the standard registration.
Implements Registration.
|
overridevirtual |
Returns a string representation of the StandardRegistration object.
Reimplemented from Registration.