From 6092d3058ebb47a9a8d0300438506a0ec4a21e41 Mon Sep 17 00:00:00 2001 From: Masfehico Date: Thu, 19 Nov 2020 17:51:00 +0100 Subject: Started Song and MusicalElement --- MusicalElement.class | Bin 0 -> 418 bytes MusicalElement.java | 13 ++++ Song.class | Bin 0 -> 401 bytes Song.java | 11 ++++ uml.xmi | 166 +++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 190 insertions(+) create mode 100644 MusicalElement.class create mode 100644 Song.class create mode 100644 uml.xmi diff --git a/MusicalElement.class b/MusicalElement.class new file mode 100644 index 0000000..69844ff Binary files /dev/null and b/MusicalElement.class differ diff --git a/MusicalElement.java b/MusicalElement.java index e69de29..878eee7 100644 --- a/MusicalElement.java +++ b/MusicalElement.java @@ -0,0 +1,13 @@ +class MusicalElement { + private int id, duration; + private String title, content; + public MusicalElement(int id, String title, int duration, String content) { + this.id=id; + this.title=title; + this.duration=duration; + this.content=content; + } + + + +} diff --git a/Song.class b/Song.class new file mode 100644 index 0000000..1b3105f Binary files /dev/null and b/Song.class differ diff --git a/Song.java b/Song.java index e69de29..b07bb81 100644 --- a/Song.java +++ b/Song.java @@ -0,0 +1,11 @@ +public class Song extends MusicalElement { + private String artist, genre; + public Song(int id, String title, int duration, String content, String artist, String genre) { + super(id, title, duration, content); + this.artist=artist; + this.genre=genre; + } + + + +} diff --git a/uml.xmi b/uml.xmi new file mode 100644 index 0000000..c8a5047 --- /dev/null +++ b/uml.xmi @@ -0,0 +1,166 @@ + + + + + umbrello uml modeller http://umbrello.kde.org + 1.6.18 + UnicodeUTF8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3