作者ando5566 (贩卖梦想的人)
看板C_and_CPP
标题Re: [问题] 新手Overriding问题
时间Sun Jun 30 17:32:41 2019
你的问题 阿辉来解答
Regarding this mechanism, we call it as polymorphism, and u should use virtual
function to implement such kind of function by using virtual identifier.
关於推文提到的 pure virtual function 就是在後面补个=0
The class which have a pure virtual function at least one but not all ,we call
it as abstract.
If the class only have pure virtual functions, we think it a interface.
—
不用谢,装逼是我的兴趣
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 42.72.199.117 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_and_CPP/M.1561887163.A.2D8.html