Check out example codes for "c++ function default argument". It will help you in understanding the concepts better.

Code Example 1

void point(int x = 3, int y = 4);
 
point(1,2); // calls point(1,2)
point(1);   // calls point(1,4)
point();    // calls point(3,4)

Learn ReactJs, React Native from akashmittal.com