0
What is difference between {static void method ()} and {int Method()}
Can you explain it. Why there are two types to make method?
1 Answer
+ 4
Have you been through that part in the course?
You can declare what the method will return.
Int = the method will return a whole number e.g. 1, 2, 3, or 4
void = the method doesn't return a value, maybe it prints something