Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add()
#26
Verr VB is not object oriented.
To be object oriented it must support polymorphism, encapsulation, and inheritance. VB6 does not support all three. Yes, objects can have methods and functions, but that does not mean the language is object oriented.
However, it is possible for the Math object to have its own methods, such as tan.
Reply
#27
Ver... To be object oriented doesn't just mean the language can be oriented around objects Smile.

It has to support polymorphism (http://en.wikipedia.org/wiki/Polymorphi ... science%29)

Which mean you can have one method do different things depending on the types of variables passed to it. In java(and other languages like C++) this is done with overloading a method.

How could this be done with vb? Passing variants and looking at the type?...I guess you could call that overloading, but I wouldn't.

It also needs to support Encapsulation, which is basically the ability to have Abstract Data types, also known as information hiding. In my opinion, for it to be encapsulation, only the operations should be visible. The data and the implementation of the operations should be hidden.
I don't think VB can do this(I know it can have classes and you can implement classes) but I am not sure, you would probably know more about that.

It also needs inheritance, which is the ability to inherit methods and data from other classes. I am not sure if VB has this or not.

How do you consider VB object oriented? I would like to know in case I'm wrong Smile
Reply
#28
Fair enough Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)