Example #1
0
    // 使用封装的类
    static void Test_使用封装的类()
    {
        Box2 box = new Box2();

        box.SetLength(1);
        box.SetBreadth(1);
        box.SetHeight(1);

        Console.WriteLine("box's volume: {0}", box.GetVolume());
    }