+ 9
what is the simplest definition of a module,how is it applicable in programming
I have been hearing of creating a module and modularizing a method in object oriented programming. i Wish to know what is a module, are there different types of modules and what are its applications.
7 odpowiedzi
+ 5
A module is a separate program designed to do a specific task and that you can import in your main program.
See more details here https://stackoverflow.com/questions/18034683/what-is-the-big-difference-between-modular-and-object-oriented-programming
+ 5
(1) In software, a module is a part of aprogram. Programs are composed of one or more independently developed modules that are not combined until the program is linked. A single modulecan contain one or several routines. (2) In hardware, a module is a self-contained component.
Modules are generic term. Works on Kiss principle. Keep it Simple Stupid.
Say for banking, you can different modules supporting different functionality-
Customer Information File.
Online General Ledger.
Deposits and Loans, including Loan Syndication.
24 x 7 availability.
Comprehensive Management Information System.
Trade Finance.
Budget and Expense Management.
Fixed Asset and Inventory Management.
+ 3
A module can either be a class or method depending on what you trying to achieve.
Say in same example of bank, I can have different classes for Customer Info and Management Info to have separate data. Secondly, if I am doing some transactions with the bank - I can use different methods like through credit cards, netbanking, but achieve same objective.
+ 2
So it can be a class or a method, that can be accessed by or executed by a main code??
+ 2
Modules can be made generic or are they generic?? because from the first respose Pierre said they are separate programs that carry out specific operations, like a class or a method.
+ 2
@Apoorva 👌👍.