Why c++ does function resolution based on pointers & not objects?

后端 未结 0 1730
日久生厌
日久生厌 2021-01-24 00:37

NOTE: My question is why & not how !

For example -

When you refer to a derived class object using a pointer or a reference to the base class, you

相关标签:
回答
  • 消灭零回复
提交回复
热议问题