Previous Topic Next topic Print topic


Constants - in COBOL and C#

Constants in Managed COBOL

78 MAX_STUDENTS value 25.  *> default public, binary-long
 
*> INITIALIZE ONLY - instance or static, may be initialized in constructor
01 MIN_DIAMETER float-short value 4.93 initialize only.  

Constants in C#

const int MAX_STUDENTS = 25;
 
// Can set to a const or var; may be initialised in a constructor
readonly float MIN_DIAMETER = 4.93f; 
Previous Topic Next topic Print topic