-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhoneNumber.h
More file actions
33 lines (31 loc) · 892 Bytes
/
PhoneNumber.h
File metadata and controls
33 lines (31 loc) · 892 Bytes
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
/********************************************************
* file name : PhoneNumber.h
* programmer name : David Luo
* date created : 2020/02/04
* date of last revision : 2020/02/05
* details of the revision : N/A
* short description : Class which includes phone number & type(home, mobile)
* *********************************************************/
#pragma once
#ifndef PHONENUMBER_H
#define PHONENUMBER_H
#include <string>
using namespace std;
namespace team3Luo {
class PhoneNumber {
private:
string num;
string type;
public:
PhoneNumber();
PhoneNumber(string, string); //constructor
PhoneNumber(const PhoneNumber& p); //copy constructor
//mutators
void setNum(string);
void setType(string);
//accessors
string getNum() const;
string getType() const;
};
}
#endif