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

            MusicBandBuilder builder = new RockBandBuilder();

            MusicBand rockBand = producer.Create(builder);

            Console.WriteLine(rockBand.ToString());

            builder = new PopBandBuilder();
            MusicBand popBand = producer.Create(builder);

            Console.WriteLine(popBand.ToString());

            Console.Read();
        }
Exemplo n.º 2
0
 public void CreateMusicBand()
 {
     MusicBand = new MusicBand();
 }