面向对象设计技巧[Object Oriented Design Tips] - 2
摘要:Pick nouns or noun phrases as classesIdentifying objects is easy, they should always be nouns. As we have seen in the Circuit Controller example, we picked up nouns from the requirements as classes in...
阅读全文
面向对象设计的技巧[Object Oriented Design Tips]-1
摘要:Stay close to problem domainDesign is a process of modeling the problem domain into programming constructs. Object oriented design simplifies the design process by maintaining a one-to-one mapping bet...
阅读全文