Good evening everyone, I have to implement an observer pattern where there's an event in a random interval of 1 to 5 seconds to which the registered observer class reacts to. I understand the concept of the observer pattern but fail miserably at implementation. I've looked at similar questions but I do not really understand the code shown and how to implement the event correctly. Could someone please help me with providing a very simplified verison of it so I can understand it better?
Thank you!