October, 2013

  • October 1, 2013

    Object-oriented design favors class hierarchies with general base classes and specific subclasses. Virtual methods provide general implementations on the base class, overridden for specific implementations by subclasses. But how does this coding style affect runtime performance? This article does a quick benchmark to illustrate the cost of "virtual" on a method.

Syndicate content
Nadeau software consulting
Nadeau software consulting