-
Notifications
You must be signed in to change notification settings - Fork 0
/
Movie.h
52 lines (48 loc) · 1.58 KB
/
Movie.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
45
46
47
48
49
50
51
52
// ------------------------------------------------ Movie.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 Movie class.
// --------------------------------------------------------------------------------------------------------------------
//The requirements for this assignment were specified by Wooyoung Kim via class
// and canvas.
// --------------------------------------------------------------------------------------------------------------------
#ifndef Movie_h
#define Movie_h
#include <iostream>
#include <string>
using namespace std;
class Movie
{
public:
//constructors and destructors
Movie();
Movie(char type, int stock, string director, string title, int releaseYear);
virtual ~Movie();
//getters
char getType() const;
string getTitle() const;
string getDirector() const;
string getDetails() const;
int getReleaseYear() const;
int getStock() const;
//specific functions to return and borrow movies
bool Return();
bool Borrow();
//stub
void addToStock(int amount);
//operators
virtual bool operator ==(Movie& otherMovie) const;
virtual bool operator !=(Movie& otherMovie) const;
virtual bool operator >(Movie& otherMovie) const;
virtual bool operator <(Movie& otherMovie) const;
protected:
char type;
string title;
string director;
int releaseYear;
int stock;
int m_Stock;
};
#endif // !Movie_h