Linked by Thom Holwerda on Mon 19th Nov 2007 21:16 UTC, submitted by Wyatt Lyon Preul
Permalink for comment 285445
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.





Member since:
2006-05-10
Virtual and override are there for the same reason as C++ I guess. On non-virtual functions you don't go thru a function pointer in vtab.
OK, I see your point, and you are right. On that matters, operations have an higher cost on Java.
OK, it would be nice to have that, it can prove to be useful for better code readability.
First, I found the idea very good, combined with the "events".
However, there is finally lots of things to do (declare the event, the delegate, create the delegate, be sure the event contains one delegate at least before firing it or there is a null exception, ...) so it is sometimes a bit painful to use. But it is only my opinion.