Book Shelf
Loading...
Searching...
No Matches
author.h
Go to the documentation of this file.
1
9#ifndef AUTHOR_H
10#define AUTHOR_H
11
12#include <QString>
13
14
20class Author
21{
22public:
29 Author(const QString &firstName, const QString &lastName);
30
36 QString getFirstName() const;
37
43 QString getLastName() const;
44
50 QString toString() const;
51
52private:
53 QString firstName;
54 QString lastName;
55};
56
57#endif // AUTHOR_H
The Author class represents an author of a book. Authors have a first name and a last name.
Definition author.h:21
QString getLastName() const
Returns the last name of the author.
Definition author.cpp:24
QString toString() const
Returns a string representation of the author in the format "LASTNAME, FIRSTNAME".
Definition author.cpp:29
QString getFirstName() const
Returns the first name of the author.
Definition author.cpp:19
Author(const QString &firstName, const QString &lastName)
Construct a new Author object.
Definition author.cpp:13