-
Notifications
You must be signed in to change notification settings - Fork 0
/
movie.h
46 lines (41 loc) · 1.25 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
/*
* movie.h is part of the Movie Store Simulator, a C++ program that
* offers the function of borrow, return, or stock with up to 10,000
* customers and 26 genres of movies
*
* @author Bill Zhao, Lucas Bradley
* @date March 12th
*/
#pragma once
#ifndef MOVIE_H
#define MOVIE_H
#include <iostream>
#include <string>
class Movie {
public:
// Default constructor
Movie();
// Virtual default constructor
virtual ~Movie() = default;
// Virtual print prints movie contents
virtual void print() = 0;
// Virtual type returns movie type
virtual char type() = 0;
// Virtual reformString in subclass returns
// original input string
virtual std::string reformString() = 0;
// Virtual sortingElement in subcalss returns
// formatted string according to class
virtual std::string sortingElement() = 0;
// Virtual inventoryDisplayHelper in subclass returns
// a string of orginal plus the borrowed number
virtual std::string inventoryDisplayHelper() = 0;
// Virtual borrowMovie in subclass marks if movie borrowed
// returns false if it rejects operation
virtual bool borrowMovie() = 0;
// Virtual returnMovie in subclass marks if movie returned
// returns false if it rejects operation
virtual bool returnMovie() = 0;
private:
};
#endif