-
Notifications
You must be signed in to change notification settings - Fork 0
/
PhoneBook.hpp
35 lines (27 loc) · 1.6 KB
/
PhoneBook.hpp
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* PhoneBook.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abensett <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/29 00:54:28 by abensett #+# #+# */
/* Updated: 2022/06/11 21:42:31 by abensett ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef PHONEBOOK_H_
# define PHONEBOOK_H_
#include "Contact.hpp"
/* 3 types of constructors : defaut, d' initialisation (with parameters) and by copy*/
class PhoneBook {
public :
PhoneBook(void); // constructeur par defaut
~PhoneBook(void); // destructeur = procedures sans type de retour
// 2 fonctions membres
void Add(void); // Not const because it modifies phonebook = WRITE
void SearchContact(void) const; // const car ne modifie pas = READONLY
private:
int _number;
Contact _contacts[8]; //_variable_privé
};
#endif