aboutsummaryrefslogtreecommitdiff
path: root/MusicalElement.java
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2020-12-19 23:21:05 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2020-12-19 23:21:05 +0100
commitfe4f2ee0f70b7b35113062538a51bf5444131196 (patch)
treead0d0e54bf0c9ee536e96aac2c45c622e73def92 /MusicalElement.java
parent4c37298e054dc1681875a71b181ce0478c577349 (diff)
Adding AudioBooks
Finishing AudioBook class, adding list and save for the audiobooks. Adding extract method for both audiobooks and songs. Resolving the id incremention issue.
Diffstat (limited to 'MusicalElement.java')
-rw-r--r--MusicalElement.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/MusicalElement.java b/MusicalElement.java
index 9dbb044..e748281 100644
--- a/MusicalElement.java
+++ b/MusicalElement.java
@@ -1,6 +1,6 @@
import java.io.Serializable;
-/** The MusicalElement contains the base of songs and audibooks.
+/** 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.
@@ -15,7 +15,6 @@ public abstract class MusicalElement implements Serializable {
public MusicalElement(String title, int duration, String content) {
- this.setId(idCount++);
this.title=title;
this.duration=duration;
this.content=content;