-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBook.h
More file actions
58 lines (46 loc) · 961 Bytes
/
Book.h
File metadata and controls
58 lines (46 loc) · 961 Bytes
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
/*
Lisa Lin (lisalin@my.unt.edu)
Homework 3 Assignment - Library Management System
Started: 3/12/2021
Book entity header file
*/
#ifndef LL0484HW3_BOOK_H
#define LL0484HW3_BOOK_H
#include <string>
#include <iostream>
using namespace std;
class Book {
public:
/*
* constructors
*/
Book();
Book(string author, string title, int id, int isbn, float cost, string status);
/*
* getters setters
*/
void setAuthor(string author);
string getAuthor();
void setTitle(string title);
string getTitle();
void setID(int id);
int getID();
void setIsbn(int isbn);
int getIsbn();
void setCost(float cost);
float getCost();
void setStatus(string status);
string getStatus();
/*
* prints individual book info
*/
void printBook();
private:
string author;
string title;
int id;
int isbn;
float cost;
string status;
};
#endif //LL0484HW3_BOOK_H