-
Notifications
You must be signed in to change notification settings - Fork 0
/
direccion.ts
26 lines (24 loc) · 892 Bytes
/
direccion.ts
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
export class Direccion {
calle: string;
numero: number;
piso: string;
letra: string;
codigoPostal: number;
poblacion: string;
provincia: string;
constructor(calle: string, numero: number, piso: string, letra: string, codigoPostal: number, poblacion: string,
provincia: string) {
this.calle = calle;
this.numero = numero;
this.piso = piso;
this. letra = letra;
this.codigoPostal = codigoPostal;
this.poblacion = poblacion;
this.provincia = provincia;
}
imprimirDireccion () {
console.log('Direccion: \n Calle -> ' + this.calle + '\n Numero -> ' + this.numero
+ '\n Piso -> ' + this.piso + '\n Letra -> ' + this.letra + '\n Codigo postal -> ' + this.codigoPostal
+ '\n Poblacion -> ' + this.poblacion + '\n Provincia -> ' + this.provincia);
}
}