Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Function Overloading Practice | Diving Into Functions
C++ Introduction Video Course
course content

Course Content

C++ Introduction Video Course

C++ Introduction Video Course

1. Getting Started
2. Control Flow
3. Diving Into Functions
4. Strings and Characters
5. Arrays and Data Structures

Function Overloading Practice

Task

  • Make function overloading for add function to support various types:
    • Create an add function that takes float inputs and returns a float.
    • Create an add function that takes strings and returns a string.

Task

  • Make function overloading for add function to support various types:
    • Create an add function that takes float inputs and returns a float.
    • Create an add function that takes strings and returns a string.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 3. Chapter 4
toggle bottom row

Function Overloading Practice

Task

  • Make function overloading for add function to support various types:
    • Create an add function that takes float inputs and returns a float.
    • Create an add function that takes strings and returns a string.

Task

  • Make function overloading for add function to support various types:
    • Create an add function that takes float inputs and returns a float.
    • Create an add function that takes strings and returns a string.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 3. Chapter 4
toggle bottom row

Function Overloading Practice

Task

  • Make function overloading for add function to support various types:
    • Create an add function that takes float inputs and returns a float.
    • Create an add function that takes strings and returns a string.

Task

  • Make function overloading for add function to support various types:
    • Create an add function that takes float inputs and returns a float.
    • Create an add function that takes strings and returns a string.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Task

  • Make function overloading for add function to support various types:
    • Create an add function that takes float inputs and returns a float.
    • Create an add function that takes strings and returns a string.

Switch to desktop for real-world practiceContinue from where you are using one of the options below
Section 3. Chapter 4
Switch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt