Module (programming)
Encyclopedia : M : MO : MOD : Module (programming)
Modules provide a separation between interface and implementation. A module interface expresses the elements that are provided and required by the module. The elements defined in the interface are visible to other modules. The implementation contains the working code that corresponds to the elements declared in the interface. Languages that explicitly support the module concept include Ada, D, F, Fortran, Pascal, ML, Modula-2, Python and Ruby.
Modules and classes
The differences between classes and modules are:
- Classes can be instantiated to create objects,
- Classes can inherit behavior and data from another class,
- Polymorphism allows relationships between class instances to change at run-time, while relations between modules are static.
- Both can be used to hide abstraction from public view.
- Both can form a hierarchy of modules/classes.
Module Interconnection Languages (MILs)
Module Interconnection Languages (MILs) provide formal grammar constructs for deciding the various module interconnection specifications required to assemble a complete software system. MILs enable the separation between programming-in-the-small and programming-in-the-large. Coding a module represents programming in the small, while assembling a system with the help of a MIL represents programming in the large. An example of MIL is MIL-75.External links
has more about this subject:
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
