Book Shelf
|
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". | |
The Author class represents an author of a book. Authors have a first name and a last name.
Author::Author | ( | const QString & | firstName, |
const QString & | lastName ) |
Construct a new Author object.
firstName | The first name of the author. |
lastName | The last name of the author. |
QString Author::getFirstName | ( | ) | const |
Returns the first name of the author.
QString Author::getLastName | ( | ) | const |
Returns the last name of the author.
QString Author::toString | ( | ) | const |
Returns a string representation of the author in the format "LASTNAME, FIRSTNAME".