a lot of surprise! creating sorts of flavor is good. how about J#, we will be waiting for it...but it look like it is just only to look like new and original...in the other hand it is getting more powerful and complicated...
You are right that to override base class method ,you can delcare derive class method with Override Modifier,But what if the base class method was not declared with Virtual modifier when it was designed???In that case you cannot use Override Modifier...is there any solution for this ..
This article talks about the advantage of the 'override' modifier. The compiler will complain about DerivedHello if you change the BaseHello class and recompile all. But does it also complain when you just recompile the BaseHello class? I don't think the compiler can know about every derived class of BaseHello. So you can still end up with run-time errors that are hard to track.
How the jvm deals with compile- and run-time objects is very well defined in the language specification. I haven't (yet) looked at C# enough to know how it works, but I am very curious about it.
All's well that ends well.
yeh i mean what i say.
as somebody commented "lets wait & watch ". i'm having the same thoughts. 'cause c# is new and i don't even have complete info about it but it seems to me as if its just a step ahead of java and others && nothing much is new about it.