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(); }
public void CreateMusicBand() { MusicBand = new MusicBand(); }