Can a function have more than one default parameter? Like maybe:
If it is possible, how do I use only one of them (e.g. from the code above I just used the default test2=0 and set the state to false)?Code:class A { public: void methodA(int test, int test2=0, bool state=true); }; void A::methodA(int test, int test2, bool state) { }
Thanks in advance.