-
Notifications
You must be signed in to change notification settings - Fork 0
/
Business.h
49 lines (35 loc) · 817 Bytes
/
Business.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
//
// Created by hloi on 10/26/2021.
//
#ifndef CSC109101BUSINESS_BUSINESS_H
#define CSC109101BUSINESS_BUSINESS_H
#include <iostream>
#include <string>
using std::string;
using std::cout;
using std::endl;
class Business {
public:
// Business() {}
Business(string name, string address) {
this->name = name;
this->address = address;
}
void SetName(string busName) {
name = busName;
}
void SetAddress(string busAddress) {
address = busAddress;
}
virtual string GetDescription() const {
return name + " -- " + address;
}
virtual void Print() {
cout << "Name: " << name << endl;
cout << "Adress: " << address << endl;
}
private:
string name;
string address;
};
#endif //CSC109101BUSINESS_BUSINESS_H