import java.io.Serializable; /** The MusicalElement contains the base of songs and audiobooks. * It is the abstract class they will take. * We use the classical get and set here. * Get is used to return the said value. * Set is used to modify the later.*/ public abstract class MusicalElement implements Serializable { //Our vars private int id, duration; private String title, content; public MusicalElement(String title, int duration, String content) { this.title=title; this.duration=duration; this.content=content; } //the gets public int getId(){return id;} public String getTitle(){return title;} public int getDuration(){return duration;} public String getContent(){return content;} //the sets public void setId(int id){this.id=id;} public void setTitle(String title){this.title=title;} public void setDuration(int duration){this.duration=duration;} public void setContent(String content){this.content=content;} }