No, it is not an error. The real world is complicated. What if the derived class has its own ways for other overloaded functions? There is always a trade-off.

birdincage (birdincage)
2001-7-17 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: A question about C++ polymorphism & inheritence

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习English