¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
Why do we write static void......, why not simply void ...... And what about header files that we have to include
4 Respuestas
+ 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.
+ 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.
0
and what's that namespace and what's it's use
- 2
means it's compulsory to write static void