摘要: Holding Your Objects ___ In general, your programs will always be creating new objects based on some criteria that will be known only at run time. You 阅读全文
posted @ 2016-12-11 22:35 玄天强 阅读(239) 评论(0) 推荐(0) 编辑
摘要: Inner Classes ___ It allows you to group classes that logically belong together and to control the visibility of one within the other. It knows about 阅读全文
posted @ 2016-12-09 20:02 玄天强 阅读(272) 评论(0) 推荐(0) 编辑
摘要: Polymorphism ___ Abstract classes and methods If you have an abstract class, objects of that specific class almost always have no meaning. You create 阅读全文
posted @ 2016-12-08 14:48 玄天强 阅读(309) 评论(0) 推荐(0) 编辑
摘要: Polymorphism ___ The polymorphic method call allows one type to express its distinction from another, similar type, as long as they’re both derived fr 阅读全文
posted @ 2016-12-07 15:17 玄天强 阅读(478) 评论(0) 推荐(0) 编辑
摘要: Reusing Classes ___ The first is composition,You’re simply reusing the functionality of the code, not its form. The second approach is inheritance,You 阅读全文
posted @ 2016-12-06 15:40 玄天强 阅读(280) 评论(0) 推荐(0) 编辑
摘要: Access Control ___ A piece of work isn’t good until it’s been rewritten, often many times. Thus a primary consideration in object oriented design is t 阅读全文
posted @ 2016-12-05 14:44 玄天强 阅读(401) 评论(0) 推荐(0) 编辑
摘要: Initialization & Cleanup ___ Guaranteed initialization with the constructor In Java, the class designer can guarantee initialization of every object b 阅读全文
posted @ 2016-12-01 20:11 玄天强 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Controlling Execution ___ true and false Java doesn’t allow you to use a number as a boolean. If you want to use a non boolean in a boolean test, you 阅读全文
posted @ 2016-11-29 15:13 玄天强 阅读(268) 评论(0) 推荐(0) 编辑
摘要: Operator ___ Using Java operators Some operators change the value of an operand. This is called a side effect. Almost all operators work only with pri 阅读全文
posted @ 2016-11-28 19:50 玄天强 阅读(472) 评论(0) 推荐(0) 编辑
摘要: Everything Is an Object ___ You manipulate objects with references + Each programming language has its own means of manipulating elements in memory. + 阅读全文
posted @ 2016-11-25 16:46 玄天强 阅读(450) 评论(0) 推荐(0) 编辑