Overloading is compile-time polymorphism. Really?

后端 未结 5 1516
面向向阳花
面向向阳花 2020-12-02 17:11

I do know the syntactical difference between overriding and overloading. And I also know that overriding is run-time polymorphism and overloading is compile-time polymorphis

5条回答
  •  再見小時候
    2020-12-02 18:07

    I have strong objection to call method overloading as compile time polymorphism.
    I agree that method overloading is static binding(compile time) but i didn't see polymorphism in that.

    I tried to put my opinion in my question to get clarification. you can refer this link.

提交回复
热议问题