Example #1
0
    public static void Main()
    {
        int           n;
        PropertyClass obj = new PropertyClass();

        obj.PrivateValue = 100; // invoke set-accessor
        obj.PrintValue();
        n = obj.PrivateValue;   // invoke get-accessor
        Console.WriteLine(" Value = " + n);
    }