Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Dynamic dispatch, subtype polymorphism?

Também chamado de: dynamic dispatch · subtype polymorphism

Definition 3.4 University Computer Science — Year 2 · Capítulo 3 — Inheritance and Polymorphism

A call of a virtual function through a pointer or a reference runs the version of the class of the object pointed at, which is known only at run time, not the version of the pointer’s type: this is dynamic dispatch. Code written against a base class and able to work, through dynamic dispatch, with objects of every derived class has subtype polymorphism.

Ler no capítulo →