Exemplo n.º 1
0
 public override void remove(SongComponent newSongComponent)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 2
0
 abstract public void remove(SongComponent newSongComponent);
Exemplo n.º 3
0
 abstract public void add(SongComponent newSongComponent);
Exemplo n.º 4
0
 public DiskJockey(SongComponent newSongList)
 {
     songList = newSongList;
 }
Exemplo n.º 5
0
 public override void remove(SongComponent newSongComponent)
 {
     songComponents.Remove(newSongComponent);
 }
Exemplo n.º 6
0
 // Whats added into this is an interface SongComponent
 // Since Song and SongGroup implements SongComponents,
 // we can add both types of objects into this class.
 // Only song group can have the add feature as it is not necessarily a leaf node.
 public override void add(SongComponent newSongComponent)
 {
     songComponents.Add(newSongComponent);
 }