GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Concepts  >  OOPS

 Print  |  
Question:  What is the use/advantage of function overloading

Answer: Please suggest use of FO


October 10, 2006 03:07:03 #7
 ABHAY   Member Since: Visitor    Total Comments: N/A 

RE: What is the use/advantage of function overloading
 

Overloading: providing multiple behaviour to same object with respect to attributes of object.

see in programming, every thing is object. u r program also an object, function is also an object.

by using function overloading, we can  call specific behaviour of that according to what attributes we set at  compiled time.

mean we don't need to write different function name for different action.

     

 

Back To Question