M
Martin Brindle
Can anyone answer this?
Image a class, let's call it A, that that has a timer. The timer times out
and calls an event, called E, to all the delegates it has attached to
it.With me so far?. Now image another class, called B, which inherits from A
and overrides the timer event so it can implement it own variation. How do i
get the event E, that's also called in class B's timer function, to bubble
up it's events to the base class or register them with class B? The compiler
insists that only events A can be registered in A.
Am i missing something?
Image a class, let's call it A, that that has a timer. The timer times out
and calls an event, called E, to all the delegates it has attached to
it.With me so far?. Now image another class, called B, which inherits from A
and overrides the timer event so it can implement it own variation. How do i
get the event E, that's also called in class B's timer function, to bubble
up it's events to the base class or register them with class B? The compiler
insists that only events A can be registered in A.
Am i missing something?