Software Development: Cohesion in Object Oriented Systems

2098 Words5 Pages

Sofware Develpment in JAVA

Table of Contents

Cohesion 1

Cohesion of methods 2

Cohesion of classes: 3

Cohesion for readability……………………………………………………………………………………………………………4

Cohesion for reuse……………………………………………………………………………………………………………………4

Coupling 4

Encapsulation 5

Ease of maintenance……………………………………………………………………………………………………………………5

Too much information ……………………………………………………………………………………………………………….5

Controlling mutation……………………………………………………………………………………………………………………6

Private methods………………………………………………………………………………………………………………………..7

Wrapping up with refactoring…………………………………………………………………………………………………….7

Refactoring for language independence……………………………………………………………………………………..7

Ease of enhancement for the GUI………………………………………………………………………………………………….7

MVC………………………………………………………………………………………………………………………………………………7

Use of pattern……………………………………………………………………………………………………………………………….8

Structure of a pattern…………………………………………………………………………………………………………………9

Decorator…………………………………………………………………………………………………………………………………..9

Singleton…………………………………………………………………………………………………………………………………..9

Factory method…………………………………………………………………………………………………………………………9

Observer…………………………………………………………………………………………………………………………………..9

Reference………………………………………………………………………………………………………………………………………10

1.0 Cohesion

In object-oriented systems, the level of the relatedness of the members in a class and strong cohesion has been acknowledged as highly beneficial properties of classes refer as cohesion. Most of the existing cohesion measures do not take into Description and some Property of classes, and thus they fail to properly reflect the cohesiveness of classes. To find solution of...

... middle of paper ...

...lp in creating the good class structure.

References:

David Barnes & Michael Kolling, Object First with Java,5Th Edition,p219

David Barnes & Michael Kolling, Object First with Java,5Th Edition,p223

David Barnes & Michael Kolling, Object First with Java,5Th Edition,p472

David Barnes & Michael Kolling, Object First with Java,5Th Edition,p474

David Barnes & Michael Kolling, Object First with Java,5Th Edition,p475

Java MVC Design Pattern, MVC, Viewed on 23 May 2014,

< http://www.roseindia.net/tutorial/java/jdbc/javamvcdesignpattern.html/>

AllenHolub, Build User Interfaces for Object-Oriented Systems, Part 2, Viewed on 23 May 2014,

< http://www.ibm.com/developerworks>

Eric Allen, Diagnosing Java code, Viewed on 23 May 2014

Open Document