コード例 #1
0
 public override void remove(SongComponent newSongComponent)
 {
     throw new NotImplementedException();
 }
コード例 #2
0
 abstract public void remove(SongComponent newSongComponent);
コード例 #3
0
 abstract public void add(SongComponent newSongComponent);
コード例 #4
0
 public DiskJockey(SongComponent newSongList)
 {
     songList = newSongList;
 }
コード例 #5
0
 public override void remove(SongComponent newSongComponent)
 {
     songComponents.Remove(newSongComponent);
 }
コード例 #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);
 }