0

What is difference between {static void method ()} and {int Method()}

Can you explain it. Why there are two types to make method?

28th Nov 2022, 11:14 AM
Aayush Jat
Aayush Jat - avatar
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
28th Nov 2022, 11:48 AM
Ausgrindtube
Ausgrindtube - avatar