-
Notifications
You must be signed in to change notification settings - Fork 0
/
return.h
30 lines (22 loc) · 866 Bytes
/
return.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
/*
return.h
(display product catagories)
Child class of transactions used to store checkout transactions
Features:
--overrides create, setData, printTransaction, and process Tran
Implementation and Assumptions:
--create() is called by a transaction factory
--all other subclasses of transaction need the same functions
*/
#pragma once
#include "transaction.h"
using namespace std;
//----------------------------------------------------------------------------
class Return : public Transaction {
public:
Return();//constructor
virtual Transaction* create() const { return new Return; }//returns tran
virtual bool setData(istream&, LibrarySystem&);//set data from file
virtual void printTransaction() const;//format and print data
virtual void processTran(LibrarySystem&) const;//return the book
};