摘要: 教材学习内容总结 第四章 认识对象 类与对象 1.定义类时使用class关键词再加名称,例如 class Clothes,新建对象时需要用new Clothes。若要将c1名称参考至新建对象,则可以Clothes c1 = new Clothes(),c1是引用,在栈上,new Clothes()在 阅读全文
posted @ 2018-03-18 23:06 20165239 阅读(99) 评论(0) 推荐(0) 编辑