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(); }