Detailed Explanation of Overloading in C++

Detailed Explanation of Overloading in C++

If we create two or more members with the same name but different numbers or types of parameters, this is called C++ overloading. In C++, we can overload: Methods Constructors Index properties This is because these members only have parameters. Types of Overloading in C++: Function Overloading Operator Overloading Function Overloading in C++ Function overloading … Read more

C++ Default Parameters vs Function Overloading: How to Choose?

C++ Default Parameters vs Function Overloading: How to Choose?

Imagine you are ordering a cup of milk tea 🧋… “Boss, I want a cup of pearl milk tea!” “Do you want to adjust the sweetness and ice level?” “No, the default is fine!” This scene seems very familiar, right? In the programming world, C++ default parameters are like the “standard configuration” at a milk … Read more

Function Overloading in C++ for Embedded Development

Function Overloading in C++ for Embedded Development

It has been a whole week since I last shared knowledge about C++, and I miss you all dearly! Now, let me briefly introduce today’s main topic: function overloading. What is function overloading? Function overloading is somewhat different from the concept of overloading in real life. Those who have a background in C may know … Read more