Define Constants and Enumerations in .NET.
Constants are values which are known at compile time and do not change.
Example:Module Module1
Sub Main()
Const abc = "100.00"
Console.WriteLine(abc)
End Sub
End Module
An enumeration is a named constant. Enum provides methods to:
- compare instances of classes,
- convert the instance values to strings,
- convert strings to an instance of a class,
- create instance of a specified enumeration and value