Class SocioPremium
java.lang.Object
model.Socio
model.SocioPremium
Clase que representa un socio Premium.
Prestamo maximo: 5 libros por 14 dias. Sin multa por retraso.
- Version:
- 1.0
- Author:
- ISC Israel de Jesus Mar Parada
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSocioPremium(String nombre, String telefono, String email) Constructor para crear un socio premium. -
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 (sin multa).Obtiene el tipo de socio.Methods inherited from class Socio
agregarPrestamo, getEmail, getFechaRegistro, getIdSocio, getNombre, getPrestamos, getPrestamosActivos, getTelefono, setEmail, setNombre, setTelefono, toString
-
Constructor Details
-
SocioPremium
-
-
Method Details
-
getTipoSocio
Obtiene el tipo de socio.- Specified by:
getTipoSocioin classSocio- Returns:
- "Premium"
-
getMaximoLibros
public int getMaximoLibros()Obtiene el maximo de libros que puede prestar.- Specified by:
getMaximoLibrosin classSocio- Returns:
- 5 libros
-
getDiasPrestamo
public int getDiasPrestamo()Obtiene los dias maximos de prestamo.- Specified by:
getDiasPrestamoin classSocio- Returns:
- 14 dias
-
getMultaPorDia
public double getMultaPorDia()Obtiene la multa por dia de retraso (sin multa).- Specified by:
getMultaPorDiain classSocio- Returns:
- 0
-