-
Notifications
You must be signed in to change notification settings - Fork 0
/
VIPCustomer.cpp
36 lines (27 loc) · 1006 Bytes
/
VIPCustomer.cpp
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
#include "VIPCustomer.h"
#include <iostream>
#include <iomanip>
VIPCustomer::VIPCustomer():Customer(){ //privilege defined statically
customerType = "VIP";
}
VIPCustomer::VIPCustomer(int cstmrID, string cstmrName, string cstmrAddress, string cstmrTel):Customer(cstmrID, cstmrName, cstmrAddress, cstmrTel){
customerType = "VIP";
}
VIPCustomer::VIPCustomer(const VIPCustomer & CopyVIPCustomer):Customer(CopyVIPCustomer){
customerType = CopyVIPCustomer.customerType;
}
VIPCustomer::~VIPCustomer(){
}
int VIPCustomer::privilege = 45;
void VIPCustomer::setPrivilege(int usrPrivilege){
privilege = usrPrivilege;
}
int VIPCustomer::getPrivilege(){
return privilege;
}
string VIPCustomer::getCustomerType() const{
return customerType;
}
void VIPCustomer::printInfo() const{
cout<<setw(6)<<getId()<<setw(20)<<getName()<<setw(30)<<getCarsRented()<<setw(30)<<getAddress()<<setw(20)<<getTel()<<setw(16)<<getCustomerType()<<setw(20)<<"------"<<setw(30)<<"------";
}