0

Why do we write static void......, why not simply void ...... And what about header files that we have to include

4th Jan 2017, 6:10 PM
Nitin Kumar
4 Answers
+ 4
In c# you include files using "Using System;" for example, static void just means that the method is static and doesn't have an explicit return type or function, using static is not compulsory, see static/public/private.
4th Jan 2017, 6:13 PM
Alex
Alex - avatar
+ 4
If you follow the lessons in this app you will learn these things. The namespace keyword is used to declare a scope that contains a set of related objects. You can use a namespace to organize code elements and to create globally unique types.
4th Jan 2017, 6:23 PM
Alex
Alex - avatar
0
and what's that namespace and what's it's use
4th Jan 2017, 6:19 PM
Nitin Kumar
- 2
means it's compulsory to write static void
4th Jan 2017, 6:18 PM
Nitin Kumar