-
Notifications
You must be signed in to change notification settings - Fork 0
/
Book.h
51 lines (37 loc) · 949 Bytes
/
Book.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
Book.h
Author: M00851681
Created: 29/12/23
Updated: 15/1/24
*/
#ifndef _BOOK_H_
#define _BOOK_H_
#include "Date.h"
#include <vector>
#include <string>
class Member;
//Book class - derived class from Person class
class Book
{
private:
int bookID;
std::string bookName;
std::string authorFirstName;
std::string authorLastName;
std::string bookType;
Date* dueDate;
Member* borrower;
public:
Book();
Book(int bookID, std::string bookName, std::string authorFirstName,
std::string authorLastName);
std::string getBookID();
std::string getbookName();
std::string getAuthorFirstName();
std::string getAuthorLastName();
Date* getDueDate();
void setDueDate(Date* dueDate);
void returnBook();
void borrowBook(Member* borrower, Date* dueDate);
};
#endif