static void Main(string[] args) { Rectangle r = new Rectangle(); r.AcceptDetails(); r.GetArea(); r.display(); }
static void Main(string[] args) { Rectangle r = new Rectangle(); Square s = new Square(); Triangle t = new Triangle(); // Octagon o = new Octagon(); WriteLine("This application finds the area of different shapes."); WriteLine(); r.AcceptDetails(); r.display(); WriteLine(); s.AcceptDetails(); s.display(); WriteLine(); t.AcceptDetails(); t.display(); WriteLine(); //o.AcceptDetails(); //o.Display(); ReadLine(); }
static void Main(string[] args) { Rectangle r = new Rectangle(); r.Acceptdetails(); r.display(); Console.ReadLine(); }