Book Shelf
Loading...
Searching...
No Matches
Author Class Reference

The Author class represents an author of a book. Authors have a first name and a last name. More...

#include <author.h>

Public Member Functions

 Author (const QString &firstName, const QString &lastName)
 Construct a new Author object.
 
QString getFirstName () const
 Returns the first name of the author.
 
QString getLastName () const
 Returns the last name of the author.
 
QString toString () const
 Returns a string representation of the author in the format "LASTNAME, FIRSTNAME".
 

Detailed Description

The Author class represents an author of a book. Authors have a first name and a last name.

Constructor & Destructor Documentation

◆ Author()

Author::Author ( const QString & firstName,
const QString & lastName )

Construct a new Author object.

Parameters
firstNameThe first name of the author.
lastNameThe last name of the author.

Member Function Documentation

◆ getFirstName()

QString Author::getFirstName ( ) const

Returns the first name of the author.

Returns
QString The first name of the author.

◆ getLastName()

QString Author::getLastName ( ) const

Returns the last name of the author.

Returns
QString The last name of the author.

◆ toString()

QString Author::toString ( ) const

Returns a string representation of the author in the format "LASTNAME, FIRSTNAME".

Returns
QString The string representation of the author.

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