Forums Register Login

Observer and Observable

+Pie Number of slices to send: Send
What are Observer and Observable?How they are used?
+Pie Number of slices to send: Send
Observer and Observable are a pair of interface and class
in the java.util package to implement a general purpose
Observer pattern. something similar to the event delegation model.
Observable is any Object on which Observers may be registered
and which notifies the registered Observers about the changes
taking place in the state of the Observable.
Observer is an interface which is used for implementing
the action to be taken when the update is taking place on the
Observable.
If you want to look young and thin, hang around old, fat people. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1477 times.
Similar Threads
What is Observer and Observable?
Observer / Observable
GUI assignment ambiguous?
Frame
How to write my own Event ( & Listener for it)??
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:27:45.