static void Main(string[] args) { var taffy = new Candy("Orange", "Orange Saltwater Taffy", CandyType.Stretchy); taffy.SetRating(10); taffy.SetRating(5, "Just kinda liked it."); Console.WriteLine(taffy.ToString()); var myDogHead = new Dog(); myDogHead.Talk(); var martinHead = new Bald(); var astronaught = new Astronaut(); var fitTorso = new FitTorso(2); fitTorso.Crunch(12); var minifigure = new Minifigure(astronaught, fitTorso); minifigure.Greet(); Console.ReadLine(); }
static void Main(string[] args) { //Console.WriteLine("Welcome To Lego Land."); var myDogHead = new Dog(); var martinHead = new Bald(); var astronaut = new Astronaut(); var fitTorso = new FitTorso(2, Sex.Male, Colors.Freckles); fitTorso.Crunch(12); var adamsLegs = new OrangeLegs(Length.Short); var minifigure = new Minifigure("Adam", astronaut, fitTorso, adamsLegs); minifigure.Greet(); Console.ReadLine(); }