[c++] final override keyword

  • the two keyword are aimed at virtual function
  • final 

    final function must be a virtual funtion , final  means that the base virtual function can not be override

  • override 

    override means the subclass have override the virtual function of baseclass , just a play a part of emphasis(强调作用)

原文地址:https://www.cnblogs.com/tianhangzhang/p/4983821.html