5.2.1. Exercises: Overloading Functions

  1. Experiment with Example 5.1. Start by uncommenting the third member function and compiling.

  2. Try adding the following line just before the end of main():

         csd.demo(4.5);  
       

    What happened? Explain the error message.

  3. Add other function calls and other variations on the demo() function.

    Explain each result.

[ fromfile: functions.xml id: None ]