Does return type need to be same in function overloading?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • govin
    New Member
    • Jan 2011
    • 1

    Does return type need to be same in function overloading?

    is thete need to same return type on function overloading
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    no, the return types may be different but you cannot overload only on different return types - the overloaded functions must differ in at least one of the parameter types

    Comment

    Working...