In C #:
myObj.SomethingHappened += new MyEventHandler(HandleSomethingHappened); void HandleSomethingHappened(string foo) { } How to play in a similar tone in C ++? How to create some EventHandler where you can feed the method and then where can you get this method from it? I want to create a class, the object of which could indicate somehow what it would do and not what it would do something with.