Example #1
0
 public Song(string title, string genre, int duration, Singer singer)
 {
     this.title     = title;
     this.genre     = genre;
     this.duration  = duration;
     this.performer = singer;
     this.text      = "";
 }
Example #2
0
        static void Main(string[] args)
        {
            Human Andy      = new Composer("Andy", "10.10.1990");
            Human Freddy    = new Singer("Freddy", "12.12.1987", "Falsetto");
            Song  firstSong = Andy.CreateSong("First Song", "Pop", 200);

            //firstSong.SetPerformer(Freddy);
            firstSong.GetInfo();
            Console.WriteLine();

            Song ffirstSong = Freddy.CreateSong("First Song", "Pop", 200);

            //ffirstSong.SetPerformer(Freddy);
            ffirstSong.GetInfo();
            Console.WriteLine();

            List <Song> songs = new List <Song>();

            songs.Add(firstSong);
            Album album      = new Album("FirstAlbum", 2018, songs, Freddy);
            Song  secondSong = new Song("Second Song", "Pop", 192);

            album.AddSong(secondSong);
            album.GetInfo();
            Console.WriteLine();

            List <Human> humans = new List <Human>();

            humans.Add(Andy);
            humans.Add(Freddy);
            SoundRecordingStudio studio = new SoundRecordingStudio("Studio", 1990);

            studio.CreateContract(firstSong, humans);
            studio.GetContractsInfo();
            Console.Read();
        }
Example #3
0
 public void SetPerformer(Singer singer)
 {
     this.performer = singer;
 }
Example #4
0
 public Album(string title, int year, List <Song> songs, Singer author)
     : base(title, year, songs)
 {
     this.author = author;
 }