Example #1
0
    static void Main(string[] args)
    {
        myclass myobj = new myclass();

        myobj.i = 10;
        myobj.printi();
    }
Example #2
0
    static void Main(string[] args)
    {
        myclass myobj = new myclass();

        myobj.i = 10;
        myobj.printi();

        otherclass myobj3 = new otherclass();

        myobj3.i = 11;
        myobj3.x = 12;
        myobj3.printi();
    }