-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCliente.h
68 lines (55 loc) · 1.17 KB
/
Cliente.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
66
67
68
// Brenda Elena Saucedo González - A00829855
// 29 - Noviembre - 2020
#include"CtaBanc.h"
#include<string>
using namespace std;
class Cliente {
// Atributos
private:
string nombre;
string direccion;
CtaBanc tarjeta;
// Metodos
public:
// Constructor Default
Cliente();
// Constructor con Parametros
Cliente(string nom, string ubi, CtaBanc tar);
// Metodos de Acceso
string getNombre();
string getDireccion();
CtaBanc getTarjeta();
// Metodos de Modificacion
void setNombre(string nom);
void setDireccion(string ubi);
void setTarjeta(CtaBanc tar);
};
Cliente::Cliente() {
CtaBanc tar;
nombre = "N/A";
direccion = "N/A";
tarjeta = tar;
}
Cliente::Cliente(string nom, string ubi, CtaBanc tar) {
nombre = nom;
direccion = ubi;
tarjeta = tar;
}
string Cliente::getNombre() {
return nombre;
}
string Cliente::getDireccion() {
return direccion;
}
CtaBanc Cliente::getTarjeta() {
return tarjeta;
}
void Cliente::setNombre(string nom) {
nombre = nom;
}
void Cliente::setDireccion(string ubi) {
direccion = ubi;
}
void Cliente::setTarjeta(CtaBanc tar) {
tarjeta = tar;
}