Exemple #1
0
        static void Main(string[] args)
        {
            Rectangle r = new Rectangle();

            r.Acceptdetails();
            r.Display();
            Console.ReadLine();
        }
Exemple #2
0
    public void Main()
    {
        Rectangle r = new Rectangle();

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

                //r.length = 4.5;
                //r.width = 3.5;
                r.Acceptdetails();
                r.Display();
                Console.Read();

                Console.Clear();
                Console.WriteLine("Width: {0}", r.width); //public
                Console.WriteLine("Hello, World!");
                Console.ReadKey();                        //Any key

                /*
                 *
                 * Console.Clear();
                 * Console.WriteLine("Hello, World!");
                 * Console.ReadKey();
                 *
                 */
            }