Está en la página 1de 2

DISEÑO DE CLASES, COMPOSICIÓN

Gestor
Conjunto de abonos: Abonos tipo Lista<Abono>

Conjunto estaciones: Estaciones tipo Lista<Estación>


Clase contenedora
 Gestor ()

 anadirAbono(Abono): void
 imprimirPrecio(String): void
 recargarAbono(String): void
 anadirEstacion(Estacion): void

Abono Estacion
- Nombre del titular: nombre tipo String
-Nombre de Estacion: nomEstacion tipo
- Apellidos del titular: apellidos tipo String String

- Documento del titular: tipo String -Zona Tarifaria: zona T enum

- Año de nacimiento: tipo String

- Familia numerosa: tipo Boolean

- Zona Tarifaria: zona T enum

- Caducidad: fechaCaduc tipo Calendar

 Abono()
 Estacion (nombre: String; zona:
 Abono (nombre: String; apellidos: String) enum)

 Abono (nombre: String; apellidos: String ;dn :  getNomEstacion(): String


String; zonaT: enum)  getZonaT() : enum

 setNomEstacion(String) : Void
 setZonaT(enum) : void

 validarAbono(Abono) : void

 getNombre():String

 getApellidos():String

 getDni():String

 getFechaNacim(): String Clases contenidas

 getFnumerosa():Boolean

 getZonaT() : enum

 getFechaCaduc():Calendar

 mostrarInfoabono(): void

AbonoAnual
 Heredado de Abono

 public class AbonoAnual extends Abono

 public void recargar()

 public double calcularImporteRecarga(double


tarifaBase)

Lanzador (principal)

Sin atributos

Main (static)

También podría gustarte