From 3affb429c9488008aef14e4080cd9f253b5747f8 Mon Sep 17 00:00:00 2001 From: Hammy Date: Fri, 12 Feb 2021 17:15:16 +0000 Subject: [PATCH] Remove explicit access modifiers --- .../src/composite/music/player/SongComponent.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Design Patterns/src/composite/music/player/SongComponent.java b/Design Patterns/src/composite/music/player/SongComponent.java index 70b9d2c..8e31c46 100644 --- a/Design Patterns/src/composite/music/player/SongComponent.java +++ b/Design Patterns/src/composite/music/player/SongComponent.java @@ -2,21 +2,21 @@ package composite.music.player; public abstract class SongComponent { - public void add(SongComponent songComponent) { + void add(SongComponent songComponent) { throw new UnsupportedOperationException(); } - public void remove(SongComponent songComponent) { + void remove(SongComponent songComponent) { throw new UnsupportedOperationException(); } - public SongComponent getComponent(int componentIndex) { throw new UnsupportedOperationException(); } + SongComponent getComponent(int componentIndex) { throw new UnsupportedOperationException(); } - public String getSongName() { throw new UnsupportedOperationException(); } + String getSongName() { throw new UnsupportedOperationException(); } - public String getBandName() { throw new UnsupportedOperationException(); } + String getBandName() { throw new UnsupportedOperationException(); } - public int getReleaseYear() { throw new UnsupportedOperationException(); } + int getReleaseYear() { throw new UnsupportedOperationException(); } - public void displaySongInfo() { throw new UnsupportedOperationException(); } + void displaySongInfo() { throw new UnsupportedOperationException(); } } \ No newline at end of file