From 532cd1e395a637a5e507bc3687a4a64e50e55b30 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Fri, 11 Dec 2020 09:12:05 +0100 Subject: adding Serialization interface and methods --- MusicalElement.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'MusicalElement.java') 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; -- cgit v1.2.3