static void Main(string[] args) { Rectangle r = new Rectangle(); r.Acceptdeatails(); r.Display(); Console.ReadLine(); }