Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Cd info = new Cd();

            //Songs
            // create an object from Persons 
            Cd album = new Cd(); // hypätään Persons luokan sisälle

            // create a few friends.. // Person luokka
            Cd song1 = new Cd { Artist = "Nightwish",Album = "Endless Forms Most Beautiful ", };
            Songs song2 = new Songs { };
         

            // add persons to collection
            info.Album.
            myFriends.AddPerson(person1);
            myFriends.AddPerson(person2);
            myFriends.AddPerson(person3);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="">cd</param>
 public void AddCd(Cd cd)
 {
     tracks.Add(cd);
 }