Wednesday, June 29, 2011

High cohesion, Low coupling

Coupling is the degree to wich any class knows about another class. Low coupling is mean class A use only public interface of class B and doesn`t relive on parts of class B(on his internal implementation).

The term cohesion is used to indicate the degree to which a class a single well-focused purpose.  High cohesion is mean one class must to implemented only one functionality.