To set default value for function parameter as static created class object, use next syntax:
int someFunc(int a, FooCls fooObj = FooCls(), double bar = 5.73);
or with transfer several parameters to overloaded class constructor:
int someFunc(int a, FooCls fooObj = FooCls(5, true, 1.8f), double bar = 5.73);