Link to home
Start Free TrialLog in
Avatar of fishmanfishman
fishmanfishman

asked on

VB 6.0

I thought VB 6.0 was object oriented but someone said to me it is object based can remember why theysaid it was. Is this true why isnt it object oriented and why is it object based? Any help or websites that exploain the difference. cant find any
ASKER CERTIFIED SOLUTION
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
VB6 was half-baked at best when implementing Object-Oriented programming.  One of the biggest problems is inheritance, which was solved in VB.NET.

Bob
The answer is somehow between the two programming paradigms. VB is object based because it can use objects provided by runtime libraries like ActiveX components. It is somehow object oriented because you can use a rudimentary form of polymorphism using interfaces and inheritance using classes.
Yeah, rudimentary, that's the word :)

Bob
Bob is absolutely correct, VB is not object oriented.  Objects were added on later and not entirely implemented.  VB.NET is truly object-oriented (i.e. was written from the ground up in this way).

VB isn't even object-based really (IMO) - the language was developed before OOP was, and hence needed a complete rethink for VB.NET.
Avatar of fishmanfishman
fishmanfishman

ASKER

this still isnt really clear to me? sorry call me stupid!
VB.NET is Object VB6 is Just an imitiation, thats all you gota know, vb6 is great for small scripting programs but as far as programming power jump to vb.net
Ok, stupid ;)... just kidding, you asked, lol

OOP is entirely based around objects.  Objects are everything, the whole system revolves around objects and their interactions.

Object based can simply use objects.  They don't have to though, e.g. a VB program could simply be a page of code that manipulates text.  This would simply be a routine.

The first two links describe it pretty well - if it isn't clear from these, then it would be worth looking on th einternet for descriptions of OOP until you find on ethat makes sense.  It should then become clear why VB isn't OOP.
imho Dhaest provided two good links that pretty much cover it.  He answered first too...
Agreed.