Variable Scope

Updated on February 22, 2018 in [A] C# .Net
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
2 on February 19, 2018

why can’t a variable declared just below the class is not usable inside a main method? 

  • Liked by
Reply
0 on February 20, 2018

You have to declare it inside the class, not outside of it 

 

  • Liked by
Reply
Cancel