What is the Command pattern also known as?
-
Action
-
Transaction
-
Wrapper
-
Surrogate
A,B
Correct answer
Explanation
Command pattern is called Action (for the object representing the action) and Transaction (for database operations where commands represent transactions). Wrapper and Surrogate are names for other patterns (Decorator and Proxy respectively).