What Does “Overloaded”/“Overload”/“Overloading” Mean?

前端 未结 8 1202
清歌不尽
清歌不尽 2020-12-09 10:33

What does \"Overloaded\"/\"Overload\" mean in regards to programming?

8条回答
  •  时光说笑
    2020-12-09 10:55

    It means that you are providing a function (method or operator) with the same name, but with a different signature. For example:

    void doSomething();
    int doSomething(string x);
    int doSomething(int a, int b, int c);
    

提交回复
热议问题