DEV Community

Cover image for C++ Performance Improvement through final devirtualization
Francis
Francis

Posted on

C++ Performance Improvement through final devirtualization

C++, the final keyword proves to be useful in everyday interviews and work scenarios. When asked about final, you can provide the following information:

  • Prevents further inheritance
  • Prohibits virtual function overriding
  • Enables devirtualization for performance improvement
  • Acts as a design constraint, preventing subclass inheritance and avoiding subclass overrides

https://levelup.gitconnected.com/c-performance-improvement-through-final-devirtualization-258e7ae1d2b5

Top comments (0)