static void Main(string[] args) { Lesson02.Rectangle rect = new Lesson02.Rectangle(10.0, 20.0); double area = rect.GetArea(); Console.WriteLine("Area of Rectangle: {0}", area); }
public void displayArea(Rectangle rect) { Console.WriteLine(rect.GetArea()); }