-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCliente.cpp
More file actions
40 lines (31 loc) · 1.07 KB
/
Copy pathCliente.cpp
File metadata and controls
40 lines (31 loc) · 1.07 KB
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
///#pragma once
#include "Cliente.h"
#include <cstring>
using namespace std;
// Constructor de Cliente
Cliente::Cliente(int idCliente, std::string nombre, std::string apellido,std::string direccion, int dni,std::string mail, std::string telefono)
{
setIdCliente(idCliente);
setNombre(nombre);
setApellido(apellido);
setDni(dni);
setDireccion(direccion);
setMail(mail);
setTelefono(telefono);
}
Cliente:: Cliente():Persona(){
idCliente=0;
strcpy(mail, "");
strcpy(telefono, "");
}
// Métodos get y set para idCliente
int Cliente:: getIdCliente(){ return idCliente; }
void Cliente:: setIdCliente(int _idCliente){idCliente=_idCliente;}
// Métodos get y set para mail
std::string Cliente:: getMail() { return mail; }
void Cliente::setMail(std::string _mail) {
strcpy(mail,_mail.c_str());}
// Métodos get y set para telefono
std::string Cliente::getTelefono() { return telefono; }
void Cliente::setTelefono(std::string _telefono) {
strcpy(telefono,_telefono.c_str());}