Which of the following is a valid overloaded version of the function void display(int a)?

  • int display(int a);
  • void display(char c);
  • void display(float b);
  • void display(int a, int b);
To create an overloaded version of the function void display(int a), you must have a different parameter list. In this case, void display(int a, int b); is a valid overloaded version because it takes two integer parameters instead of just one.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *