-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreturnItem.hpp
35 lines (29 loc) · 1.01 KB
/
returnItem.hpp
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
//----------------------------------------------------------------------------
// ReturnItem.h
// Implementation:
// -- This class is responsible for updating the stock: increase the stock by
// 1. It is the Subclass f the Transaction class, get actiontype R and
// update the stock
// Assumptions:
// -- Inherits all behavior from Transaction parent class, although it has
// a unique constructor and destructor
//----------------------------------------------------------------------------
#ifndef returnItem_hpp
#define returnItem_hpp
#include <fstream>
#include <iostream>
#include "transaction.hpp"
using namespace std;
class Customer;
class ReturnItem : public Transaction {
public:
// constructors / destructors
ReturnItem();
~ReturnItem();
virtual void display() const; // this is to print the borrow info
// processes the ReturnItem transaction
virtual bool process(string, Movie*, Customer*);
// returns pointer to ReturnItem object
virtual Transaction* create();
};
#endif