Object-oriented design anti-patterns

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
m
Line 7: Line 7:
 
*[[Call super]] - This anti pattern occurs when a superclass requires derived classes to call an overridden method.
 
*[[Call super]] - This anti pattern occurs when a superclass requires derived classes to call an overridden method.
 
*[[Circle-ellipse problem]] - This anti pattern occurs when inheritance is not used correctly and the [[Liskov substitution principle]] is violated.
 
*[[Circle-ellipse problem]] - This anti pattern occurs when inheritance is not used correctly and the [[Liskov substitution principle]] is violated.
*[[Circular dependency]]
+
*[[Circular dependency]] - This anti pattern occurs when there are two or more modules that depend directly or indirectly on each other.
 
*[[Constant interface]]
 
*[[Constant interface]]
 
*[[God object]]
 
*[[God object]]

Revision as of 01:44, 19 July 2009

Object-oriented design anti patterns describe bad design solutions to common problems. As such, they are essentially the opposite of conventional design patterns.

The following are common object-oriented design anti patterns:

Many of these anti patterns are closely related to common design maxims.

See also

Personal tools