discofy inicial
This commit is contained in:
40
src/app/discoteca.ts
Normal file
40
src/app/discoteca.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
import {Evento} from './evento';
|
||||
|
||||
export class Discoteca {
|
||||
|
||||
private id: number;
|
||||
private nombre: string;
|
||||
private telefono: number;
|
||||
private localizacion: string;
|
||||
private eventos: Evento[];
|
||||
|
||||
|
||||
setNombre(nombre: string): void{
|
||||
this.nombre = nombre;
|
||||
}
|
||||
|
||||
getNombre(): string{
|
||||
return this.nombre;
|
||||
}
|
||||
|
||||
setTelefono(telefono: number): void{
|
||||
this.telefono = telefono;
|
||||
}
|
||||
|
||||
getTelefono(): number{
|
||||
return this.telefono;
|
||||
}
|
||||
|
||||
setLocalizacion(localizacion: string): void{
|
||||
this.localizacion = localizacion;
|
||||
}
|
||||
|
||||
getLocalizacion(): string{
|
||||
return this.localizacion
|
||||
}
|
||||
|
||||
getEventos(): Evento[]{
|
||||
return this.eventos;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user