aboutsummaryrefslogtreecommitdiffstats
path: root/MusicalElement.java
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2020-12-11 09:12:05 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2020-12-11 09:12:05 +0100
commit532cd1e395a637a5e507bc3687a4a64e50e55b30 (patch)
treef15d9b5a14e1129aa9b9629d842dcf8f99745d5d /MusicalElement.java
parentec126de053cd1343e0c5778a56ea58045d0e3170 (diff)
downloadjMusicHub-532cd1e395a637a5e507bc3687a4a64e50e55b30.tar.gz
jMusicHub-532cd1e395a637a5e507bc3687a4a64e50e55b30.tar.bz2
jMusicHub-532cd1e395a637a5e507bc3687a4a64e50e55b30.zip
adding Serialization interface and methods
Diffstat (limited to '')
-rw-r--r--MusicalElement.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/MusicalElement.java b/MusicalElement.java
index 5c24641..26c3808 100644
--- a/MusicalElement.java
+++ b/MusicalElement.java
@@ -1,10 +1,12 @@
+import java.io.Serializable;
+
/** The MusicalElement contains the base of songs and audibooks.
* 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.*/
-class MusicalElement {
+class MusicalElement implements Serializable {
//Our vars
private int id, duration;