←
^
→
Introduction to 492 and Decoupling
Callbacks
A part that uses a GUI usually needs to be alerted of events like a button pressing by the user.
This is best achieved via a
callback
where the GUI part calls a given function on the Main part.
Dependencies are usually reduced to a weak dependency on an Listener interface.
José M. Vidal
.
26 of 34