static void Main(string[] args) { myclass myobj = new myclass(); myobj.i = 10; myobj.printi(); }
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(); }