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 Odpowiedź
+ 1
So that the Main() method can be called without initializing a class instance.
4th Jan 2017, 12:17 PM
Dao
Dao - avatar