Package model
Class Llibre
java.lang.Object
model.Llibre
Classe que representa un llibre
- Version:
- 1.0
- Author:
- Jose
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Llibre
Constructor de la classe Llibre
-
-
Method Details
-
getTitol
Retorna el titol del llibre- Returns:
- El titol del llibre
-
getAutor
Retorna l'autor del llibre- Returns:
- L'autor del llibre
-
esPrestat
public boolean esPrestat()Retorna si el llibre esta prestat o no- Returns:
- true si el llibre esta prestat, false en cas contrari
-
prestar
public void prestar()Prestar el llibre -
retornar
public void retornar()Retornar el llibre -
toString
-
setLlibre
Modificar el llibre- Parameters:
nouTitol- Nou titol del llibrenouAutor- Nou autor del llibre
-