B
B
bubuxDD2017-08-04 15:47:21
OOP
bubuxDD, 2017-08-04 15:47:21

Is there a pattern for monitoring changes in the state of an object?

The guys need a pattern by implementing which you can get an object that monitors the change in its state. For example, there is a Person class and I want that when this class has all the fields filled in, it would automatically call a method, for example, send ()
Is this possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iMaximus, 2017-08-04
@bubuxDD

Yes, if I understand correctly what you need, the observer pattern will do

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question