So this method:
int num (int a = 0)
{
static int b = a;
return b;
}
can be used to set and return a value using num(VALUE), but what I don't understand is why it still returns b when called using num(). Shouldn't it return 0 because of the default parameter? Does it have to do something with b being static? Sorry if this sounds noobish, but I'm new to the language.