diff options
| author | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-11 09:12:05 +0100 |
|---|---|---|
| committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-11 09:12:05 +0100 |
| commit | 532cd1e395a637a5e507bc3687a4a64e50e55b30 (patch) | |
| tree | f15d9b5a14e1129aa9b9629d842dcf8f99745d5d /MusicalElement.java | |
| parent | ec126de053cd1343e0c5778a56ea58045d0e3170 (diff) | |
| download | jMusicHub-532cd1e395a637a5e507bc3687a4a64e50e55b30.tar.gz jMusicHub-532cd1e395a637a5e507bc3687a4a64e50e55b30.tar.bz2 jMusicHub-532cd1e395a637a5e507bc3687a4a64e50e55b30.zip | |
adding Serialization interface and methods
Diffstat (limited to '')
| -rw-r--r-- | MusicalElement.java | 4 |
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; |
