Re: [问题] 新手Overriding问题

楼主: ando5566 (风云变色)   2019-06-30 17:32:41
你的问题 阿辉来解答
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.

不用谢,装逼是我的兴趣

Links booklink

Contact Us: admin [ a t ] ucptt.com