public static void Main() { imp ob; ob = new rectangle(); ob.get(); ob.area(); ob.display(); ob = new square(); ob.get(); ob.area(); ob.display(); }
public static void Main() { square a = new square(4); Console.WriteLine("the area of square is:{0}", a.area()); }