polymorphic C++ references

前端 未结 7 1070
闹比i
闹比i 2020-12-09 09:07

I was wondering how you can do polymorphism with references, as opposed to pointers.

To clarify, see the following minimal example:

cl         


        
7条回答
提交回复
热议问题