difference between classes and modules

  • Thread starter Thread starter Andy B
  • Start date Start date
A

Andy B

What exactly are the differences between classes and modules and when would
you use one over the other?
 
Andy B said:
What exactly are the differences between classes and modules and when
would you use one over the other?

A module is a loose grouping construct used to group functions and
procedures. On the other hand a class is a plan which is used to construct
objects (instances of the class).

As modules are imported automatically (so you do not need to qualify the
functions' names by the name of the module) I recommend to use them if this
effect is desired.
 
Andy,

A (non shared classs) is a template to create an object.

Modules (and a shared classes) are in fact direct objects always existing
(sharable) in your program

Cor
 
Back
Top