





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















Based on Head First Design Patterns
This should give you a good idea of what we need to control from the remote!
create Command object Client
create Command object Client execute Command createCommandObject()
def execute: Unit { receiver.action1(); receiver.action2(); } action1() action2() …. Receiver
create Command object Client execute Command createCommandObject()
setCommand Invoker
create Command object Client execute Command createCommandObject()
setCommand Invoker