Form parameters

honggarae 25/10/2022 445
Synonym-shaped parameter generally refers to the formal parameter

Introduction

is the parameter used when defining the function name and the function body, the purpose is to receive parameters incorporated when calling the function.

In VB, the variable name, array name, array name in the Sub process and the FUNCTION process appears, called the formal parameter, the process is called, and the process is allocated, and its function is to illustrate the variable Types and morphology and the role "played" during the process.

Form parameters

The argument of the Function of the Function, its initial value comes from the call of the function. The meticulin is only possible to obtain a specific value and participate in the operational function value of the operation during the program execution.

The visible reference is equivalent to the variable description, but special attention should be taken: only the type identifier can be used here, and the type cannot be used directly.

When the function is called, the argument will be assigned. Thus, you must pay attention to the number of the arguments, the type should be corresponding to the shape, and must have a determined value.

Differences of parametric and argument

English name Different: Conversion is Parameter, the argument is Argument.

The essence is different: the essence of the ginseng is a name, does not take up memory space. The essence of the arguments is a variable that has been occupied in memory.

Different in Javadoc or MSDN: Javadoc and MSDN mention a method and what parameters are often used by parameter. Only when the programmer really uses this method, it is argument.

When debugging, Parameter turns into argument, and often does not use argument words, but called Variable (variable), because the inquiry is essentially a variable, in memory Take up a piece of space.

Latest: Typical experience material

Next: Angel's Knock