public class test { private int m_nwrite; private int readonly m_nread=100; private int m_nwriteread;
public int writeread { get {return m_nwriteread;} set {m_nwriteread=value;} }
public int write { set { m_nwrite = value; } }
public int read { get {return m_nread;} }
}
class testapp { public static void main() { test mytest = new test(); int i=mytest.read; //get mytest.write=250; //set mytest.writeread+=10000000 ; //set and get