1 Replies - 821 Views - Last Post: 22 October 2008 - 07:48 PM Rate Topic: -----

#1 FtK Shadow   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 26
  • Joined: 25-September 08

Overloaded Functions

Post icon  Posted 22 October 2008 - 07:32 PM

Its not so much help that I need I just dont understand what my teachers asking. Anyone understand it?

Quote

Write overloaded min functions. One function will return the min of two integers, the second function will return the min of 3 integer values.



Hint: see if you can use the two argument min function for the three argument min function



Note: This means you need two functions called min


Is This A Good Question/Topic? 0
  • +

Replies To: Overloaded Functions

#2 salindor   User is offline

  • D.I.C Regular
  • member icon

Reputation: 46
  • View blog
  • Posts: 304
  • Joined: 10-November 06

Re: Overloaded Functions

Posted 22 October 2008 - 07:48 PM

An overloaded function is two or more functions all with the same number but different parameters.

For example
void a() {}
void a(int one) {}
void a(double one) {}
void a(int one, double two) {}



are all overloaded functions
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1