Home >Common Problem >What are the three basic properties that a module should have?

What are the three basic properties that a module should have?

hzc
hzcOriginal
2020-06-18 13:28:139467browse

What are the three basic properties that a module should have?

What are the three basic attributes that a module should have?

The three basic attributes of a module are: function, logic and status

Function refers to what the module can do.
Logic refers to what is done inside the module.
State refers to the environment and conditions when the module is used. ,

Related introduction to modules:

In programming, a program or subroutine required to complete a certain function; or refers to a program or subroutine that can be compiled by a compiler, An independent program unit processed by an assembly program, etc.; or refers to a part of a large software system.

Module, also known as component, is a collection of program statements (that is, a collection of program codes and data structures) that can be individually named and independently complete certain functions. It has two basic characteristics: external characteristics and internal characteristics. External characteristics refer to the interface between the module and the external environment (that is, the way other modules or programs call the module, including input and output parameters, referenced global variables) and the functions of the module; internal characteristics refer to the characteristics of the internal environment of the module (That is, the module's local data and program code).

The above is the detailed content of What are the three basic properties that a module should have?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn