Command Pattern in Java

Reading time: 15 minutes


The command pattern is a behavioral-based design pattern that encapsulates a request/action in an object without knowing the internal operations.


The idea is to create an interface of commands as objects that can be called while being able to decouple the object that performs the action and the object that invokes the action. We have explored it in Java.


Problem

Take for instance, the typical programs we wrote when we coded our first programs. Often times we would use a...

 •  0 comments  •  flag
Share on Twitter
Published on June 22, 2020 11:04
No comments have been added yet.