Chain of Responsibility design pattern

Let’s explain the pattern step by step ; The chain-of-responsibility pattern is a design pattern consisting of a source of command objects and a series of processing objects.This design pattern is situated insi behavioral patterns. Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and …

Continue reading ‘Chain of Responsibility design pattern’ »

Strategy Design Pattern (example for payment types)

Hi everyone, We continue to studies about design patterns.I want to illustrate strategy design patern in this post.I implemented a sample scenario related accounting and tranfer operations of payment types for this and coded.Also ı coded  classcic sample scenario(SalaryCalc for different Staffs,PermitDayCalc for different Staff and department) of strategy can see this sample via my …

Continue reading ‘Strategy Design Pattern (example for payment types)’ »

Command Design pattern

Hi everyone, in one of previous my posts, I illustrated the using of command design pattern (command query reponsibility separation with command processor) via this post I will exemine this pattern as simpler. Intent – encapsulate a request in an object – allows the parameterization of clients with different requests – allows saving the requests …

Continue reading ‘Command Design pattern’ »

Composition Design Pattern

Definition The intent of this pattern is to compose objects into tree structures to represent part-whole hierarchies.Composite lets clients treat individual objects and compositions of objects uniformly. Composition design pattern’s uml diagram our hierarchies implementation to composition design pattern Class Diagram See you next post