public class MyClass
    {
        private int myInt;        //字段
        public MyClass()          //构造函数
        {
            myInt = 99; 
        }
        public int MyInt          //属性 
        {
            get 
            {
                return myInt;
            }
            set 
            {
                myInt = value;
            }
        }
        public void DoSomething()  //方法
        { 
                //.............        
        }

 

posted on 2015-04-14 11:27  若非菲lrr  阅读(102)  评论(0编辑  收藏  举报