using System;class Demo{ public class animal { int weight; string name; public void show() { Console.WriteLine ("{0} has weight {1}", name, weight); } public void my_set (int k, string z) { weight=k; name=z; } } public class tiger:animal { public tiger() { my_set(100,"tiger"); show(); } } public class lion:animal { public lion() { my_set(200,"lion"); show(); } } public static void Main() { tiger Mike = new tiger(); lion Bob = new lion(); }}