From 2a0af411dc91cdf550b4cb0bb30fe7e96e3e5152 Mon Sep 17 00:00:00 2001 From: Saurya Gur Date: Wed, 4 Jun 2025 16:48:39 +0530 Subject: [PATCH] Added documentation for C++ Function Overloading (#8659) * Added concise documentation for function-overloading@sgfqb22sdN4VRJYkhAVaf.md, including key concepts, basic examples, parameter count variation, and common pitfalls. This update aligns with the established contribution guidelines for adding content to roadmap topics. * Update src/data/roadmaps/cpp/content/function-overloading@sgfqb22sdN4VRJYkhAVaf.md --------- Co-authored-by: Kamran Ahmed --- .../function-overloading@sgfqb22sdN4VRJYkhAVaf.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/data/roadmaps/cpp/content/function-overloading@sgfqb22sdN4VRJYkhAVaf.md b/src/data/roadmaps/cpp/content/function-overloading@sgfqb22sdN4VRJYkhAVaf.md index e69de29bb..364310d99 100644 --- a/src/data/roadmaps/cpp/content/function-overloading@sgfqb22sdN4VRJYkhAVaf.md +++ b/src/data/roadmaps/cpp/content/function-overloading@sgfqb22sdN4VRJYkhAVaf.md @@ -0,0 +1,9 @@ +# Function Overloading + +Function overloading in C++ allows multiple functions to share the same name, provided they differ in the number or types of parameters. This facilitates compile-time polymorphism, enhancing code readability and maintainability by enabling functions to perform similar operations on different data types or argument counts. + +Visit the following resources to learn more: + +- [@official@Function Overloading - Microsoft Learn](https://learn.microsoft.com/en-us/cpp/cpp/function-overloading) +- [@article@C++ Function Overloading - W3Schools](https://www.w3schools.com/cpp/cpp_function_overloading.asp) +