hi.
i m very new to vb...can any tell me vb is object based or object oriented language??
thanx
Printable View
hi.
i m very new to vb...can any tell me vb is object based or object oriented language??
thanx
Welcome.
yes, it's an OOP programming language.
Not as good at OOP as c++ or vb.net, but a cut down OOP none the less.
Woka
Sort of yes but not really. The vb editor has the capacity to structure your code into objects but they're basically identical to modules in their implementation. There are a load of important object orientated concepts that vb6 doesn't support such as inheritance, method overloading, parametised constructors etc.
If you're looking for an object orientated language to learn OO I'd recommend Java or C++ if you're feeling particularly masochistic. And always remember, Object Orientation is a design paradigm, not an implementation structure; all you relly want from a language is the ability to support the concepts thrown up by your design.
thanks for immediate response........how we can say it is pure oop..bcoz it uses built in object to create new object...still i m confused......
thanx to both........
Pure OOP? In what context?
VB6 does not do inheritance (although this can be fudged) or overloaded events.
Inheritance is a huge thing for OOP, and very handy.
In VB6 you can create 2 objects, a users and user class. Where Users is a collection of User classes. In VB6 you can do:
Once you have loaded the users class you can do things like:VB Code:
Dim objUsers As Users Set objUsers = New Users objUsers.Fetch
VB Code:
Dim objUser As User objUser = objUsers.Item(6) MsgBox objUser.Username 'or MsgBox objUsers.Item(6).Username 'or Dim objUser As User For Each objUser In objUsers 'do something with each user class Next objUser
Hope that helps.
Why do you ask?
Woka
thanx wokawidget......for ur detail explaination...
last conclusion vb is oop but not pure oop....
thanx
That's OK.
It's OOP, but it lacks a few features of a fully blown OOP language, but it's still OOP non the less.
Woof
thanx a lot....below is some more question..sorry for asking in same thread only..
1)...how many modules are in vb??
2)what are difference between activedll and activeexe??
thanx
1) I think it's as many as you want...never reached the limit, even on HUGE enterprise apps.
2) ActiveX EXE can run in a different process and thread execution. ActiveX DLLs are DLL files, reference files. ActiveX EXE's can be run as a normal EXE or referenced like DLLs. Code inside ActiveX EXE's runs slower than DLLs.
Woka