Example of class command
Answers
Answered by
2
Explanation:
A Command class holds some subset of the following: an object, a method to be applied to the object, and the arguments to be passed when the method is applied. The Command's "execute" method then causes the pieces to come together. Sequences of Command objects can be assembled into composite (or macro) commands.
mark me as brainliest answer
Answered by
0
Answer:
A Command class holds some subset of the following: an object, a method to be applied to class.The "check" at a diner is an example of a Command pattern.
Explanation:
Similar questions