Answer to Question #24197 in C++ for Nourh
but with different numbers of parameters and/or parameter types.
void print_string(const char* str)
void print_int(int n)
Overloading allows you to execute different tasks by one function
according to the input parameters. On the other side it allows you
to organize the functions performing similar operations with objects
of different types (as in the code above).
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!