Why and when to use constants.

CONSTANTS: BEGIN OF changes_2020,

new type string ‘N’,

old type string ‘O’,

END OF changes_2020.

The above example shows that the constants can be used for better understanding of program.

for example instead of saying just the letter ‘N’, we can say new. so the reader of the code, can easily understand the significance of the value. It improves the readability of the code.

“changes_2020-new” mentions that is new.

One thought on “Why and when to use constants.”

Comments are closed.