public class AudioBook extends MusicalElement
MusicalElement
,
Serialized FormConstructor and Description |
---|
AudioBook(java.lang.String title,
int duration,
java.lang.String content,
java.lang.String author,
Language language,
Category category)
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthor()
This method is used to give the author of the audiobook.
|
java.lang.String |
getCategory()
This method is used to give the category of the audiobook.
|
java.lang.String |
getLanguage()
This method is used to give the language of the audiobook.
|
void |
setArtist(java.lang.String author)
Basic method to set the author of audiobook.
|
void |
setCategory(Category category)
Basic method to set the category of the audiobook using the name method from the Category class.
|
void |
setGenre(Language language)
Basic method to set the language of the audiobook using the name method from the Language object.
|
java.lang.String |
toString()
Basic method to "configure" what does a print of this object actually does.
|
getContent, getDuration, getId, getTitle, setContent, setDuration, setId, setTitle
public java.lang.String getAuthor()
public java.lang.String getLanguage()
Language
public java.lang.String getCategory()
Category
public void setArtist(java.lang.String author)
author
- Stringpublic void setGenre(Language language)
language
- LanguageLanguage
public void setCategory(Category category)
category
- Categorypublic java.lang.String toString()
toString
in class java.lang.Object