All Questions
Tagged with inheritance event-handling
4 questions
9
votes
2
answers
3k
views
Recorder for keyboard and mouse events
I'm building an event recorder. So far the code looks clean, but I feel like I'm missing something that can make this code even better.
Is composition a better solution? If yes, how can I do it ...
5
votes
1
answer
4k
views
Having children call parent's public events with data generated from a protected event
I don't know that my title describes the code I want reviewed. Hopefully the code is explanatory.
I have an abstract parent class with two children. The parent listens to some hardware notifications ...
2
votes
1
answer
119
views
Can this architecture of base + derived classes be coded more efficient? [closed]
I've got some architecture in my code similar to this. It is about the Construct method in the base class in the example below. This method contains the logic for constructing a building, which is the ...
4
votes
3
answers
37k
views
Very simple events implementation
I've been thinking about implementing events and wrote some abstract code:
...