-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBook.cpp
More file actions
50 lines (40 loc) · 722 Bytes
/
Book.cpp
File metadata and controls
50 lines (40 loc) · 722 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
#include "Book.h"
Book::Book() : Document(),
_resume(""),
_editorYear(0),
_editor("")
{
}
Book::~Book()
{
}
Book::Book(std::string title, std::string autor, std::string resume, int year, std::string editor) : Document(title, autor),
_resume(resume),
_editorYear(year),
_editor(editor)
{
}
void Book::setResume(const std::string& resume)
{
_resume = resume;
}
void Book::setEditorYear(const int year)
{
_editorYear = year;
}
void Book::setEditor(const std::string& editor)
{
_editor = editor;
}
std::string Book::getResume() const
{
return _resume;
}
int Book::getEditorYear() const
{
return _editorYear;
}
std::string Book::getEditor() const
{
return _editor;
}