difference between classes and modules

A

Andy B

What exactly are the differences between classes and modules and when would
you use one over the other?
 
H

Herfried K. Wagner [MVP]

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.
 
C

Cor Ligthert[MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top