Class Sample
{
public const int i = 3; //
public static void Main(string[] args)
{
public const string name = "sameer";
public const int id = 10;
}
}
if remove public in Main method then every thing is well. please let me know how is it?

Vinay SinghRank #604 · 4K reputationPosted Jun 8, 2016, 2:42 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 8, 2016, 4:44 AM EDT
sameer shaikh181 reputationPosted Jun 8, 2016, 9:14 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 8, 2016, 9:15 PM EDT