static void Main(string[] args) { Rectangle r = new Rectangle(); r.GetData(); r.Display(); }
static void Main(string[] args) { Rectangle r = new Rectangle(); r.GetData(); r.Display(); Console.ReadLine(); }
static void Main(string[] args) { Rectangle r = new Rectangle(); r.GetData(); Console.WriteLine("Area:" + r.GetArea()); Console.WriteLine("Perimeter" + r.GetPerimeter()); Console.ReadKey(); }
static void Main(string[] args) { Rectangle r = new Rectangle(); r.GetData(); r.GetArea(); r.GetPerimeter(); Console.ReadLine(); }
static void Main(string[] args) { Rectangle r = new Rectangle(); r.GetData(); Calculate(r); Circle c = new Circle(); c.GetData(); Calculate(c); }
static void Main(string[] args) { Rectangle r = new Rectangle(); r.GetData(); Calculate(r); Console.WriteLine("\n"); Circle c = new Circle(); c.GetData(); Calculate(c); Console.ReadKey(); }