4 ms·
If you go to the trouble to write your own language, make it not terrible? Public Abstract Class Animal Abstract Function Speak() As String Overrida
by themgt 11y ago
If you go to the trouble to write your own language, make it not terrible?
Public Abstract Class Animal
Abstract Function Speak() As String
Overridable Function Eat() As String
Return "Yum!"
End Function
End Class
Public Class Dog Inherits Animal
Override Function Speak()
Return "Woof!"
End Function
Override Function Eat()
Return Base.Eat() & " Woof!"
End Function
End Class
http://jacob.jkrall.net/wasabi-the-parts/classes.html#access-control-modifiers http://jacob.jkrall.net/wasabi-the-parts/classes.html#access...
- tedunangst 11y agoAnother volunteer to rewrite all the existing ASP code!
- tghw 11y agoIt wasn't written that way to facilitate future spaghetti code, but to make sure the old stuff still worked. Without that, you'd have to rewrite, in which case, why not rewrite in an existing language?
- MichaelGG 11y agoThat isn't Classic ASP code, that's more .NET-ish stuff. So it wouldn't have required a rewrite to avoid it, right?
- tedunangst 11y agoThat's the ++ in the ASP++. Stock ASP/VB works (or worked) too, but lots of new syntax was added to support .net.