Exemplo n.º 1
0
    static void Main()
    {
        //create box object and use setters
        box mybox = new box();

        mybox.setHeight(4);
        mybox.setLength(3);
        mybox.setWidth(2);
        //use getters
        Console.WriteLine(mybox.getHeight());
        Console.WriteLine(mybox.getLength());
        Console.WriteLine(mybox.getWidth());
        Console.WriteLine(mybox.calcVolume());
        Console.ReadLine();
    }