Пример #1
0
        static void Main(string[] args)
        {
            double volume;
            Box    Box1 = new Box();
            Box    Box2 = new Box();

            Box1.setLength(10.0);
            Box1.setBreadth(10.0);
            System.Console.WriteLine(Box1.displayLength());

            Box2.setLength(13.12);
            Box2.setBreadth(77.9);

            volume = Box1.Calc();

            System.Console.WriteLine(volume);
        }