-
Notifications
You must be signed in to change notification settings - Fork 0
/
book.h
30 lines (26 loc) · 744 Bytes
/
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
// #ifndef BOOK_H
// #define BOOK_H
#include <iostream>
#include <string>
#include <set>
#include <vector>
#include <algorithm>
class Book: public Product{
public:
Book(const std::string name, double price, int qty, std::string ISBN, std::string author);
~Book();
/**
* Returns the appropriate keywords that this product should be associated with
*/
std::set<std::string> keywords() const override;
/**
* Returns a string to display the product info for hits of the search
*/
std::string displayString()const override;
std::string getISBN() const;
std::string getAuthor() const;
void dump(std::ostream& os) const override;
private:
std::string isbn_;
std::string author_;
};