Dynamic and Static dispatch in C++

A dispatch mechanism determines which function gets executed when called upon by an object. In this OpenGenus article, we will explore each of these mechanisms along their approach to overloading and polymorphism.

Table of contents:

OverviewVirtual functions and vtablesStatic dispatchDynamic dispatchLinking design patternsConclusionOverview

Static dispatch, also known as early binding or compile-time binding, is a technique where the decision about which function to call is made at com...

 •  0 comments  •  flag
Share on Twitter
Published on July 14, 2024 09:57
No comments have been added yet.