Hi Thomas,

I'm not very familiar with VB6 but understand it to be a dynamically typed language. Don't dynamically typed languages sort of give you polymorphism on everything for free?

In C# I would have an Animal class that has the Eat() method and use polymorphism to treat my Cat or Dog objects as Animals so that some function wouldn't need to be written twice to handle dogs and cats separately. But that's free in dynamically typed languages like javascript that don't check the type of the object for most tasks such as calling a method or getting a member variable. Javascript and Lua are actually using associative arrays for all their complex objects which is perhaps a bit different. But I believe it to be the same in Python and Ruby which let you define actual classes.

Does VB6 let you define classes like Python and Ruby?
Or associative arrays like javascript and lua?

Thanks,
Ian Reed

Try my games at http://BlindAudioGames.com


On 8/9/2013 8:30 PM, Thomas Ward wrote:
hi Ken,

Yeah, you got that right. I love the flexibility of inheritance, but
that isn't the only thing about  object oriented programming you are
missing in VB 6. Polymorphism is another aspect of object oriented
programming that doesn't seem that big a deal until you realize all
the things you can do with it. I really think you should try your hand
at VB .NET or C# .NET one of these days.

Cheers!





---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].

Reply via email to