Functions in C++: Using Default Arguments & Function Overloading

C++    |    Intermediate
  • 8 videos | 56m 35s
  • Includes Assessment
  • Earns a Badge
Rating 4.4 of 14 users Rating 4.4 of 14 users (14)
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 course
    Pass in input arguments with default values
    Explore how to return pointers and references from functions
    Use the auto keyword with return values of a function
  • Create multiple functions with the same name
    Work with overloading functions
    Split code into header files
    Summarize the key concepts covered in this course

IN THIS COURSE

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.

YOU MIGHT ALSO LIKE

Rating 4.0 of 7 users Rating 4.0 of 7 users (7)
Rating 4.3 of 8 users Rating 4.3 of 8 users (8)
Rating 4.3 of 6 users Rating 4.3 of 6 users (6)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.4 of 9 users Rating 4.4 of 9 users (9)
Rating 4.5 of 24 users Rating 4.5 of 24 users (24)
Rating 4.1 of 17 users Rating 4.1 of 17 users (17)