摘要:
class Program { static void Main(string[] args) { Stone stone = new Stone(); stone.Age = 5000; //Monkey wukongSun = stone;//调用隐式的类型转换 Monkey wukongSun 阅读全文
摘要:
从宏观的角度来看,对象是类的实例。比如: //定义一个名为Someone的类,代表这么一些人(通过指定年龄,性别,性格等基本信息)class Someone { public int age; public string sex; public string name; //other...}//. 阅读全文