com.isima.zz3.advjava.tp1.observer
Class MainObserver

java.lang.Object
  extended by com.isima.zz3.advjava.tp1.observer.MainObserver

public class MainObserver
extends java.lang.Object

Design Pattern: Observer

Author:
brunot

Constructor Summary
MainObserver()
           
 
Method Summary
static void main(java.lang.String[] args)
          Design Pattern: Observer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainObserver

public MainObserver()
Method Detail

main

public static void main(java.lang.String[] args)
Design Pattern: Observer

Parameters:
args -
  • Create the subject and the observer
  • Bind the observer to the subject
  • Print the status of the subject observer
  • Change the status of the subject
  • Print the status of the observer