0

I don't understand Optional Arguments and how to make a default value.

Can someone pls help me ? Sry for my bad english.

28th Dec 2016, 7:45 AM
Telole Folo
Telole Folo - avatar
2 Réponses
0
method (var x = 5){ //code } if you call the function with out declareing x it will be 5
28th Dec 2016, 10:33 AM
Florian
0
And if you write int y and wouldn't declare it, would it be 5 too?
28th Dec 2016, 1:29 PM
Telole Folo
Telole Folo - avatar