Home Segments Top Top Previous Next

783: Mainline

Another way to consolidate what you have learned is to reflect on how the methods defined for models, observers, components, and listeners implement the connecting, activating, fetching, and relaying depicted in the diagram shown in Segment 761:

The Observable class provides model classes with three essential methods:

The Observer interface insists that you define one essential method:

The update method does whatever you tell it to do; typically it fetches values from models and relays those values to views.