Hi Ian, Not really. V B 6 allows you to create classes, but they are very primitive compared to other languages. It does not support inheritance, polymorphism, and so on. In VB 6 a class is little more than a struct with a different name. VB 6 tends to be geared more for procedural programming like Basic which it was largely based upon where newer versions of VB like VB .NET is fully object oriented in design and methodology.
Cheers! On 8/10/13, Ian Reed <[email protected]> wrote: > 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 --- 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].
