0
I don't understand Optional Arguments and how to make a default value.
Can someone pls help me ? Sry for my bad english.
2 Respuestas
0
method (var x = 5){
//code
}
if you call the function with out declareing x it will be 5
0
And if you write int y and wouldn't declare it,
would it be 5 too?