Differentiate between function overloading and function overriding

前端 未结 11 1908
臣服心动
臣服心动 2020-11-29 18:40

Differentiate between function overloading and function overriding in C++?

11条回答
  •  孤街浪徒
    2020-11-29 19:12

    You are putting in place an overloading when you change the original types for the arguments in the signature of a method.

    You are putting in place an overriding when you change the original Implementation of a method in a derived class.

提交回复
热议问题