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)
(#135397@0)
2001-7-17 -05:00

回到话题: A question about C++ polymorphism & inheritence

回到论坛: HOME枫下论坛枫下论坛主坛工作学习English

URL:   
http://www.rolia.net/zh/post.php?f=0&p=135397