Re: Override static derived variable

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



knocte <knocte@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in news:d93v33$skl$1@nsnmrro2-
gest.nuria.telefonica-data.net:
> I have a problem with C# language. I want to define an algorithm on a
> static function inside an abstract class. This function calls a static
> variable inside the same class. Then I want to define some derived
> classes wich inherit the function and override the variable, but it
> doesn't work.

You cannnot override statics in C#, or in fact in .NET. In Delphi.NET you can, but they are done using
some magic to preserve compatibilty and dont export as normal statics for other languages.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/
.