HOW ARE OBSERVER AND OBSERVABLE USED?

James Smith

Total Post:79

Points:395
Posted by  James Smith
Java 
 1411  View(s)
Ratings:
Rate this:
  1. James Smith

    Post:79

    Points:395
    How are Observer and Observable used?

    Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!