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

C++    |    Intermediate
  • 8 videos | 56m 35s
  • Includes Assessment
  • Earns a Badge
Rating 4.5 of 13 users Rating 4.5 of 13 users (13)
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 5.0 of 5 users Rating 5.0 of 5 users (5)
Rating 3.9 of 8 users Rating 3.9 of 8 users (8)
Rating 4.2 of 111 users Rating 4.2 of 111 users (111)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.1 of 10 users Rating 4.1 of 10 users (10)
Rating 3.6 of 16 users Rating 3.6 of 16 users (16)
Rating 4.2 of 111 users Rating 4.2 of 111 users (111)