Skip to content

Latest commit

 

History

History

readme.md

Design Patterns - Command Pattern

Command pattern is a data driven design pattern and falls under behavioral pattern category. A request is wrapped under an object as command and passed to invoker object. Invoker object looks for the appropriate object which can handle this command and passes the command to the corresponding object which executes the command.

Build

javac -cp . CommandPatternDemo.java

Run

java CommandPatternDemo