Mega Code Archive

 
Categories / VB.Net / Language Basics
 

Const Variable for Constant

Imports System public class MainClass     Shared Sub Main()          Const FreezingPoint As Integer = 32           Const BoilingPoint As Integer = 212          Console.WriteLine("Freezing point of water: {0}",FreezingPoint)          Console.WriteLine("Boiling point of water: {0}", BoilingPoint)     End Sub End Class