-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAuto.h
44 lines (29 loc) · 886 Bytes
/
Auto.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
/* Auto class header file */
#ifndef _Auto_h_
#define _Auto_h_
#include "InsurancePolicy.h"
class Auto : public InsurancePolicy
{
protected:
string autoMakeModel, vin;
float liability, collision;
public:
// constructor
Auto(string n="", string a="", string v="", float l=0, float c=0);
// deconstuctor
~Auto() {}
// calculate auto commission
void calcCommission();
// access methods
void setMakeModel(string a) { autoMakeModel = a; }
void setVIN(string a) { vin = a; }
void setLiability(float a) { liability = a; }
void setCollision(float a) { collision = a; }
string getMakeModel() { return autoMakeModel; }
string getVIN() { return vin; }
float getLiability() { return liability; }
float getCollision() { return collision; }
// print method -- used in overloaded stream << operator
void print(ostream &strm) const;
};
#endif