static void Main(string[] args) { Bear barryTheBear = new Bear(); barryTheBear.Weight = 2000; barryTheBear.Walks(); barryTheBear.Speaks(); PolarBear CokeACola = new PolarBear(); Animal theJSWiz = new Animal(); theJSWiz.NumberOfLegs = 2; Console.ReadLine(); }
static void Main(string[] args) { Bear barryTheBear = new Bear(); barryTheBear.Weight = 2000; Dog Freddy = new Dog(); Freddy.Weight = 250; Freddy.Name = "Fred the odd one"; Freddy.HasEyes = true; Console.WriteLine(Freddy.Weight); barryTheBear.Walks(); barryTheBear.Speak(); Polarbear cokeACola = new Polarbear(); Console.ReadLine(); }