what is the simplest definition of a module,how is it applicable in programming | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

21st Jul 2017, 2:09 PM
Germain F
Germain F - avatar
6 Answers
+ 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
21st Jul 2017, 2:20 PM
🔭Pierre Chary🐍
🔭Pierre Chary🐍 - avatar
+ 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.
21st Jul 2017, 2:23 PM
Apoorva Shenoy Nayak
Apoorva Shenoy Nayak - avatar
+ 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.
21st Jul 2017, 2:30 PM
Apoorva Shenoy Nayak
Apoorva Shenoy Nayak - avatar
+ 2
So it can be a class or a method, that can be accessed by or executed by a main code??
21st Jul 2017, 2:23 PM
Germain F
Germain F - avatar
+ 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.
21st Jul 2017, 2:27 PM
Germain F
Germain F - avatar
+ 2
@Apoorva 👌👍.
21st Jul 2017, 2:33 PM
Germain F
Germain F - avatar