RE: Virtual aka overridable

"Michael S. Muegel" <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
> Normally when a wxWidgets method is virtual ( header file ) the same
> wx.NET method should also be virtual. But sometimes you just forget to
> add virtual... :)

OK. So that is the logic. Just looking at Window.cs it is totally out of
sync virtual-wise with window.h (where Cursor() is based). I will fix later.
I'm surprised wx-c-gen.pl does not take care of this.

Does everyone agree that something can be virtual in wx.NET and not in
wxWidgets? They do not really *have* to sync up: if the wx.Widgets guys did
not feel something should be virtual but we do it can be out of sync.

One of my biggest beefs with C# and VB.NET is members are not overridable by
default (and this really is just a language construct). Maybe I am still an
OO newbie but this just does not make much sense. People forget (in general)
to add virtual (C#) / overridable (VB.NET) and so you get very closed
classes.

-Mike

--
Michael S. Muegel
Dallas, TX



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.