예제 #1
0
        static void Main(string[] args)
        {
            CD cd1 = new CD();
            cd1.Name = "Endless Forms Most Beautiful";
            cd1.Artist = "Nightwish";

            Song song1 = new Song();
            song1.SongName = "Shudder Before the Beautiful";
            song1.Length = 6.29;
            cd1.AddSong(song1);
            Song song2 = new Song();
            song2.SongName = "Nyt loppu tää Nightwish pelleily";
            song2.Length = 7.11;
            cd1.AddSong(song2);

            cd1.PrintData();
            cd1.PrintCollection();
            

        }
예제 #2
0
파일: CD.cs 프로젝트: Hurttaj/HowDoIGitHub
 public void AddSong(Song song)
 {
     songs.Add(song);
 }
예제 #3
0
파일: CD.cs 프로젝트: Hurttaj/HowDoIGitHub
 public void AddSong(Song song)
 {
     songs.Add(song);
 }