Functions in C++: Using Default Arguments & Function Overloading
C++
| Intermediate
- 8 videos | 56m 35s
- Includes Assessment
- Earns a Badge
C++ allows you as the developer to specify default values for the input arguments into your functions, and supports function overloading. Both of these are powerful techniques for code reuse. Explore how to use default argument values for C++ functions, including important rules that govern such default values. Examine the semantics of return values from functions and learn how to avoid the dangling pointer problem. Discover function overloading, learn how to split the declaration and implementation of a function across header and implementation files, and learn the correct way of importing these header files into code to invoke that function. Upon completion, you'll be able to specify default values for function arguments, overload functions based on input arguments and const, and split functions across .h and .cpp files.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this coursePass in input arguments with default valuesExplore how to return pointers and references from functionsUse the auto keyword with return values of a function
-
Create multiple functions with the same nameWork with overloading functionsSplit code into header filesSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 45s
-
10m 48s
-
8m 52s
-
8m 18s
-
6m 50s
-
8m 3s
-
7m 27s
-
3m 34s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.