objectsfirstwithjava-chapter7.pptVIP

  • 3
  • 0
  • 约 26页
  • 2016-10-06 发布于天津
  • 举报
objectsfirstwithjava-chapter7

Objects First with Java - A Practical Introduction using BlueJ, ? David J. Barnes, Michael K?lling Code Quality Two important concepts for quality of code: Coupling – as little as possible please Cohesion – as much as possible please Coupling Coupling refers to links between separate units of a program. If two classes depend closely on many details of each other, we say they are tightly coupled. We aim for loose coupling. Loose Coupling Loose coupling makes it possible to: understand how a class works without having to understand how the classes it uses work; change the implementation

文档评论(0)

1亿VIP精品文档

相关文档