摘要:
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
玄天强
阅读(251)
评论(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
玄天强
阅读(292)
评论(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
玄天强
阅读(314)
评论(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
玄天强
阅读(493)
评论(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
玄天强
阅读(290)
评论(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
玄天强
阅读(407)
评论(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
玄天强
阅读(218)
评论(0)
推荐(0)
浙公网安备 33010602011771号