Object-Oriented Programming In C++: Overloading and Default Arguments
Content:
1. Function overloading in C++. 2. Default arguments in c++.Function Overloading in C++:
We can have multiple definitions for the same function name in the same scope. The definition of the function must differ from each other by the types and/or the number of arguments in the argument list. We can not overload function declarations that differ only by return type. Example: We can define a function called display to print a integer number.- Read more about Object-Oriented Programming In C++: Overloading and Default Arguments
- Log in or register to post comments
- 83 views