-
Notifications
You must be signed in to change notification settings - Fork 0
/
Person.h
45 lines (32 loc) · 1.1 KB
/
Person.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
//whatever is above, Moodle has added, so remove from here up
/* Name: Keita Nonaka
Project 12
This is the public header file for the class Person.
It displays the available methods of the class.
A person is defined by an Id number, last name, first name, and age.
*/
#ifndef PERSON_H
#define PERSON_H
//#include <string>
#include <iostream>
using namespace std;
class Person
{
public:
//Default constructor
Person();
void setId(int); //Sets a person's Id number
int getId() const; //Returns a person's Id number
void setLastName(string); //Sets a person's last name
string getLastName() const; //Returns a person's last name
void setFirstName(string); //Sets a person's first name
string getFirstName() const; //Returns a person's first name
void setAge(int); //Sets a person's age
int getAge() const; //Returns a person's age
private:
char lastName[15];
char firstName [10];
int age;
int idNumber;
};
#endif