use of static before void main() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

use of static before void main()

Whats use of static ? Why it is compulsory?

4th Jan 2017, 12:08 PM
Himanshu Pandey
Himanshu Pandey - avatar
1 Answer
+ 1
So that the Main() method can be called without initializing a class instance.
4th Jan 2017, 12:17 PM
Dao
Dao - avatar