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.2 of 5 users Rating 4.2 of 5 users (5)
Rating 4.9 of 15 users Rating 4.9 of 15 users (15)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 3.9 of 46 users Rating 3.9 of 46 users (46)
Rating 4.9 of 15 users Rating 4.9 of 15 users (15)
Rating 3.7 of 21 users Rating 3.7 of 21 users (21)