T
T
trace82017-01-03 02:48:51
Programming
trace8, 2017-01-03 02:48:51

How is memory polymorphism implemented?

A variable is a pointer to a region in memory.
A class is a pointer to a structure located in memory.
Polymorphism can be static or dynamic. How does it work in terms of memory?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maaGames, 2017-01-03
@maaGames

Not standardized. Even for the same language, different compiler developers can and do implement differently.
Static polymorphism (templates) from a "memory point of view" does not exist at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question