Constants in VB .NET

Sometime we want to use fixed value for specified variable. For this purpose we can use constants in VB .NET as follows:

Const MAX_STUDENTS As Integer = 25 
' Can set to a const or var; may be initialized in a constructor
ReadOnly MIN_DIAMETER As Single = 4.93 

Add a Comment