-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBook.h
63 lines (47 loc) · 1.25 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//
// Book.h
// Library Project
//
// Created by Ronak Lamba on 1/8/25.
//
#ifndef Book_h
#define Book_h
#include "Member.h"
#include <string>
#include <iostream>
using namespace std;
//
class Member; // forward declaration
class Book {
private:
string bookTitle;
string bookAuthor;
string bookReleaseYear;
string bookRating;
string bookISBN;
bool bookIsAvailable = true;
Member* bookBorrowedBy = nullptr;
public:
Book();
Book(string title, string author, string releaseYear, string rating, string ISBN);
// accessors
string getBookTitle() const;
string getBookAuthor() const;
string getBookReleaseYear() const;
string getBookRating() const;
string getBookISBN() const;
bool isBookAvailable() const;
Member* getBookBorrowedBy() const;
// mutators
void setBookTitle(string title);
void setBookAuthor(string author);
void setBookReleaseYear(string releaseYear);
void setBookRating(string rating);
void setBookISBN(string ISBN);
void setBookAvailability(bool availability);
void setBookBorrowedBy(Member* myMember);
// OTHER METHODS
void displayBookInfo(ostream& out) const;
void displayBook(ostream& out) const;
};
#endif /* Book_h */