Computer Science, asked by estz21032, 9 months ago

Example of class command

Answers

Answered by harnathyadav2907
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 pavithranatarajan855
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