Overloading by return type

前端 未结 11 1852
我在风中等你
我在风中等你 2020-11-22 07:07

I read few questions here on SO about this topic which seems yet confusing to me. I\'ve just begun to learn C++ and I haven\'t studied templates yet or operator overloading

11条回答
  •  野性不改
    2020-11-22 07:49

    you can't overload a function based on the return type of the function. you can overlead based on the type and number of arguments that this function takes.

提交回复
热议问题