Pankaj  Kumar Choudhary

Pankaj Kumar Choudhary

  • 69
  • 26.6k
  • 13.4m

Readonly ,Const Keyword with static Modifier

Mar 3 2015 10:46 PM
can we use a static modifier with a Readonly and Const variable
 
my question is that i want to know what is diff. b/w
          public static const int ab = 13;
public static readonly int ab = 10;
 
and 
 
public  const int ab = 13;
public  readonly int ab = 10; 
 
because const and readonly variable are all ready static for a class

Answers (2)