<分区>
是否有任何当前方式或可能计划的标准更改,允许我使用 override
关键字要求重写虚函数?
class base {
virtual void foo() = 0; //what, if anything, can I do here so that...
}
class derived {
void foo(); //...this is an error...
void foo() override; //...and only this accepted
}