Class SocioInfantil
java.lang.Object
model.Socio
model.SocioInfantil
Clase que representa un socio Infantil.
Prestamo maximo: 2 libros por 5 dias. Multa: $200 por dia de retraso.
- Version:
- 1.0
- Author:
- ISC Israel de Jesus Mar Parada
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSocioInfantil(String nombre, String telefono, String email) Constructor para crear un socio infantil. -
Method Summary
Modifier and TypeMethodDescriptionintObtiene los dias maximos de prestamo.intObtiene el maximo de libros que puede prestar.doubleObtiene la multa por dia de retraso.Obtiene el tipo de socio.Methods inherited from class Socio
agregarPrestamo, getEmail, getFechaRegistro, getIdSocio, getNombre, getPrestamos, getPrestamosActivos, getTelefono, setEmail, setNombre, setTelefono, toString
-
Constructor Details
-
SocioInfantil
-
-
Method Details
-
getTipoSocio
Obtiene el tipo de socio.- Specified by:
getTipoSocioin classSocio- Returns:
- "Infantil"
-
getMaximoLibros
public int getMaximoLibros()Obtiene el maximo de libros que puede prestar.- Specified by:
getMaximoLibrosin classSocio- Returns:
- 2 libros
-
getDiasPrestamo
public int getDiasPrestamo()Obtiene los dias maximos de prestamo.- Specified by:
getDiasPrestamoin classSocio- Returns:
- 5 dias
-
getMultaPorDia
public double getMultaPorDia()Obtiene la multa por dia de retraso.- Specified by:
getMultaPorDiain classSocio- Returns:
- $200 por dia
-