-
Notifications
You must be signed in to change notification settings - Fork 0
/
Adult.h
65 lines (57 loc) · 1.21 KB
/
Adult.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/** Adult class (privately) inherited from Person class.
*
* #include "Student.h" <BR>
* -llib
*
*/
#ifndef ADULT_H
#define ADULT_H
// SYSTEM INCLUDES
#include<iostream>
// LOCAL INCLUDES
#include "Person.h"
// Adult class definition
class Adult : private Person {
public:
// LIFECYCLE
/** Default + Overloaded constructor.
*/
Adult(const string& = "", int = 0, char = '/0');
// Use compiler-generated copy constructor, assignment, and destructor.
// Adult(const Adult&);
// Adult& operator=(const Adult&);
// ~Adult();
// OPERATIONS
/** function that depicts eating of Adult.
*
* @param void
*
* @return void
*/
void Eat();
/** function that depicts walking of Adult.
*
* @param void
*
* @return void
*/
void Walk();
// ACCESS
// setters
void SetName(const string& = "");
void SetAge(int = 0);
void SetGender(char = '/0');
void SetAdult(const string& = "", int = 0, char = '/0');
/**
# @overload void SetAdult(const Adult& aAdult);
*/
void SetAdult(const Adult& aAdult);
// getters
const string& GetName() const;
int GetAge() const;
char GetGender() const;
const Adult& GetAdult()const;
};
// end class Adult
#endif
// _ADULT_H_