On May 03, 2006, at 8:51 AM, Maximilian Tyrtania wrote:

I wonder what exactly you could do with abstract classes, that can't be done
with events.

I mimic abstract classes like this:

Protected constructor

Method MyCoolVirtualMethod
//just calls an event
evMyCoolEvent

//define the event
Event evMyCoolEvent

Then I go ahead and implement stuff in the subclasses eventhandlers.

This comes so close to an abstract class that I don't need a "real" language
RB construct to implement them.

Just that sometimes you need that inheritance to work "bottom up" not top down like events do. Anyone forgetting to pass the event along means that a class higher up the inheritance may handle things before the lower down ones and that may in fact be wrong for the purposes intended.




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to