-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomedy.h
More file actions
44 lines (37 loc) · 1.24 KB
/
comedy.h
File metadata and controls
44 lines (37 loc) · 1.24 KB
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
/* Aaron Parks
* Prof. Carol Zander
* CSS 343 : Winter 2010
* Lab 4v4 - MOVIE Store */
/*-- Comedy -----------------------------------------------------------
* Derived from 'Movie'
* Contains specified functionality for Comedy objects.
*
*-- Assumptions ------------------------------------------------------
* - createItem
* -> If any title begins with a number, the number will be in
* in written form
*---------------------------------------------------------------------*/
#ifndef COMEDY_H
#define COMEDY_H
#include "movie.h"
using namespace std;
class Comedy : public Movie
{
public:
//default constructor //used by MovieFactory
Comedy();
//constructor
Comedy(string,string,int);
//creates new 'Comedy' by calling constructor //returns pointer to new object
virtual Item* createItem(ifstream&);
//boolean comparison operators
virtual bool operator==(const Item&) const;
virtual bool operator!=(const Item&) const;
virtual bool operator>(const Item&) const;
virtual bool operator<(const Item&) const;
virtual bool operator>=(const Item&) const;
virtual bool operator<=(const Item&) const;
//for displaying item header
virtual void header() const;
};
#endif