blob: eaddaeac25c99fd0ab2b7f117688968c5536d9b0 (
plain) (
blame)
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
|
#ifndef _BOOK
#define _BOOK
#include "String.h"
class Book {
String title;
String author;
short year;
String text;
double price;
bool availableForPurchase;
public:
void SetTitle(const String& newTitle);
const String& GetTitle() const;
void SetAuthor(const String& newAuthor);
const String& GetAuthor() const;
void SetYear(short newYear);
short GetYear() const;
void SetText(const String& newText);
const String& GetText() const;
void SetPrice(double newPrice);
double GetPrice() const;
void SetAvailableForPurchase(bool isAvailableForPurchase);
bool GetAvailableForPurchase() const;
void PrintBookInfo() const;
bool Export(const String& fileName);
bool Import(const String& fileName);
};
#endif /* _BOOK */
|