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