Skip to content

Add example where virtual call is appropriate #31

@tomlankhorst

Description

@tomlankhorst

Sometimes virtual functions are costly, sometimes not. Show both examples in this repo.

As suggested in #23 by @peci1:

Virtual functions might be costly if the function is called often. Maybe the code could have a non-virtual function OftenCalledFunction and a virtual NotSoOftenCalledFunction. But that decision is on you.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions