-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBook.cpp
More file actions
58 lines (57 loc) · 798 Bytes
/
Book.cpp
File metadata and controls
58 lines (57 loc) · 798 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
#include <iostream>
#include <cstddef>
#include<string>
#include "Book.h"
using namespace std;
/*
Saitcan Baskol
21803589
SEC02
*/
Book::Book()
{
bookId = 0;
bookName = "Default";
bookYear = 0;
status = true;
}
Book::Book(int id,string title,int year)
{
setBookId(id);
setBookName(title);
setBookYear(year);
status = true;
}
Book::~Book(){}
int Book::getBookId()
{
return bookId;
}
string Book::getBookName()
{
return bookName;
}
int Book::getBookYear()
{
return bookYear;
}
bool Book::getStatus()
{
return status;
}
void Book::setBookId(int id)
{
bookId = id;
}
void Book::setBookName(string title)
{
bookName = title;
}
void Book::setBookYear(int year)
{
bookYear = year;
}
void Book::setStatus(bool taken)
{
status = taken;
}