
What is the use of class module
On Thu, 8 Oct 1998 09:28:31 +0800, "Liew Hock Wai"
Quote:
>Hello all , may i know what is the use of class module , is it the same as
>C++ class ? Please show me some example if you can. Thanks.
That's a question you can't answer in a word or two and one that will
most likely start a controversy. There are many purists and C++
devotees that get upset if you say anything in VB is "the same as
C++".
If you use the definition that a class is used to define an object
then yes I would say that the are basically the same, that's using the
old cookie/cookie cutter analogy you learned in college. It's a
module that contains propeties and methods use to define an object
(the same old characteristics and behaviors you read about learning
C++)
For examples, there are plenty in the VB Books Online, and many
excellent books that describe OOP from VBs perspective. I'd suggest
Deb Kurata's book -- Doing Objects in VB5.