static void Main(string[] args) { Tiger obj1 = new Tiger(); obj1.Show(); Lion obj2 = new Lion(); obj2.Show(); }
static void Main(string[] args) { Lion lionTest = new Lion(45.7, "Simba"); Tiger tigerTest = new Tiger(30, "Shere Khan"); lionTest.show(); Console.WriteLine("--------------------------------"); tigerTest.show(); Console.ReadKey(); }