-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTransaction.h
44 lines (39 loc) · 1.33 KB
/
Transaction.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// ------------------------------------------------ Transaction.h -------------------------------------------------------
// Jasdeep Brar, Cameron Ufland CSS343 C
// Creation Date: March 1, 2020
// Date of Last Modification: March 14, 2020
// --------------------------------------------------------------------------------------------------------------------
// This is the header file for the Transaction class.
// --------------------------------------------------------------------------------------------------------------------
//The requirements for this assignment were specified by Wooyoung Kim via class
// and canvas.
// --------------------------------------------------------------------------------------------------------------------
#ifndef Transaction_h
#define Transaction_h
#include <iostream>
#include <string>
using namespace std;
class Transaction
{
public:
//constructors and destructors
Transaction();
virtual ~Transaction();
//getters
char getType() const;
int getCustomerID() const;
friend ostream& operator <<(ostream& output, Transaction& t);
virtual void display();
protected:
//data fields to cover all genres
char type;
char format = 'D';
string title;
string director;
string majorActorFirstName;
string majorActorLastName;
int releaseMonth;
int releaseYear;
int customerID;
};
#endif // !Transaction_h