import java.util.HashSet;
public abstract class HipHopSang extends Sang implements Spillbar{
protected HashSet features;
protected boolean radiovennlig;
public HipHopSang(String t, String a, int l, String url, HashSet ft, boolean r) {
super(t, a, l, url);
features = ft;
radiovennlig = r;
}
// Overload konstrukt?r
public HipHopSang(String t, String a, int l, String url, boolean r) {
super(t, a, l, url);
features = new HashSet<>();
radiovennlig = r;
}
// Implementere spill
@Override
public void spill() {
System.out.println(
"Hip Hop Sang\n" +
"N? spilles " +
tittel +
" av " +
artist +
"!"
);
if (features.size() > 0) {
System.out.print("Features: ");
for (String ft : features) {
System.out.print(ft + ", ");
}
System.out.println();
}
System.out.println(
formatertLengde() +
"\n" +
URL +
"\n"
);
}
}