Conference Registration 2024.07.18.04
Loading...
Searching...
No Matches
StudentRegistration Class Reference

The StudentRegistration class represents a registration for a student attendee. More...

#include <studentregistration.h>

Inheritance diagram for StudentRegistration:
Registration

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ StudentRegistration()

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.

Parameters
attendeeThe person attending the registration.
bookingDateThe date of the registration booking. Defaults to the current date.
qualificationThe qualification of the student. Defaults to an empty string.

Member Function Documentation

◆ calculateFee()

double StudentRegistration::calculateFee ( ) const
overridevirtual

Calculates the fee for the student registration.

Returns
The fee for the student registration.

Implements Registration.

◆ getQualification()

QString StudentRegistration::getQualification ( ) const

Gets the qualification of the student.

Returns
The qualification of the student.

◆ toString()

QString StudentRegistration::toString ( ) const
overridevirtual

Converts the StudentRegistration object to a string representation.

Returns
The string representation of the StudentRegistration object.

Reimplemented from Registration.


The documentation for this class was generated from the following files: