Method Args

When declaring a method, do the arguments need an identifier or is the type only acceptable?

4th Jan 2018, 5:14 AM
2 Answers
+ 6
Greetings Shaun, Welcome to Sololearn. I know those badges are tempting but do not ask questions you already know the answer to
4th Jan 2018, 8:27 AM
David Akhihiero
David Akhihiero - avatar
Both a type and identifier have to be supplied for each argument to avoid compiling errors.
4th Jan 2018, 5:17 AM