-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClientes.cpp
More file actions
34 lines (32 loc) · 1000 Bytes
/
Copy pathClientes.cpp
File metadata and controls
34 lines (32 loc) · 1000 Bytes
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
#include "Persona.cpp"
#include<iostream>
using namespace std;
class Clientes : Persona{
//atributos
private : string nit;
// constructor}
public :
Clientes(){
}
Clientes(string nom, string ape, string dir, string f, int tel, string n) : Persona(nom,ape,dir,f,tel){
nit = n;
}
//set (modificar los atributos de una clase)
void setNit(string n){nit = n;}
void setNombres(string nom){nombres = nom;}
void setApellidos(string ape){apellidos = ape;}
void setDireccion(string dir){direccion = dir;}
void setTelefono(int tel){telefono = tel;}
void setFn(string f){fn = f;}
//get (mostrar los atrtibutos de una clase)
string getNit(){return nit;}
string getNombres(){return nombres;}
string getApellidos(){return apellidos;}
string getDireccion(){return direccion;}
int getTelefono(){return telefono;}
string getFn(){return fn;}
void agregar(){
cout<<"_____________________________"<<endl;
cout<<nit<<";"<<nombres<<","<<apellidos<<","<<direccion<<","<<fn<<","<<telefono<<endl;
}
};