Exemple #1
0
        static void Main(string[] args)
        {            
            Cd cd1 = new Cd { Name = "Yksi", Artist = "#1 \n" };

            Song song1 = new Song { SongName = "Asd", Time = "666" };
            Song song2 = new Song { SongName = "Sad", Time = "66546" };
            Song song3 = new Song { SongName = "XDD", Time = "80085" };
            Song song4 = new Song { SongName = "Qwerty", Time = "715517" };

            cd1.AddSong(song1);
            cd1.AddSong(song2);
            cd1.AddSong(song3);
            cd1.AddSong(song4);

            Console.WriteLine(cd1.ToString());    
                                       
        }
Exemple #2
0
 public void AddSong(Song song)
 {
     Songs.Add(song);
 }