Breaking News
You are here: Home / Notes / SEM-4 / .NET PROGRAMMING / what is enumeration in vb.net?

what is enumeration in vb.net?

what is enumeration in vb.net?

enumeration

enumeration

 

An enumeration is a set of named integer constants.

 

Module constantsNenum

   Enum Colors
      red = 1
      orange = 2
      yellow = 3
      green = 4
      azure = 5
      blue = 6
      violet = 7
   End Enum
   Sub Main()
      Console.WriteLine("The Color Red is : " & Colors.red)
      Console.WriteLine("The Color Yellow is : " & Colors.yellow)
      Console.WriteLine("The Color Blue is : " & Colors.blue)
      Console.WriteLine("The Color Green is : " & Colors.green)
      Console.ReadKey()
   End Sub
End Module

Download Paper Solutions from Below Link

About admin

Scroll To Top