15th Oct 2017, 8:59 AM
Hrishi Bhoir
5 Respostas
+ 3
You are calling it from a static method so it needs to be static too. If you wanted to make minororadult non-static, you would need sone kind of object where it belongs to, for example: Program p = new Program(); p.minororadult(...);
15th Oct 2017, 10:06 AM
Schindlabua
Schindlabua - avatar
0
Thanks can you help me with the difference?
15th Oct 2017, 9:07 AM
Hrishi Bhoir
0
sorry if I have been vague, just wanted to ask why we need static by default here
15th Oct 2017, 9:21 AM
Hrishi Bhoir