added comments for Command pattern

This commit is contained in:
Dmitry
2022-01-30 19:37:00 +07:00
parent 829d62d553
commit cbacbd8437

View File

@ -1,5 +1,11 @@
package design_patterns
/**
* pattern: Command
*
* description: it's a behavioral pattern that allows you to wrap requests or simple operations in separate objects.
*/
interface ArithmeticCommand {
fun execute(number: Int) : Int
}