Interface Observer

All Known Implementing Classes:
ConcreteObserver

public interface Observer
Interface for all observers in the Observer pattern.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(String state)
    Notifies the observer of a change in the subject.
  • Method Details

    • update

      void update(String state)
      Notifies the observer of a change in the subject.
      Parameters:
      state - The updated state from the subject.