Skip to Main Content
Software Essentials
book

Software Essentials

by Adair Dingle
July 2014
Intermediate to advanced content levelIntermediate to advanced
436 pages
12h 27m
English
Chapman and Hall/CRC
Content preview from Software Essentials
196 Software Essentials
In a statically typed language like C++, C#, or Java, the only method that
may not be virtual is the constructor. Why? To allocate an object on the stack
in C++, the compiler must know the size, and therefore, the type of the object.
C# and Java follow the same programming language design as C++. However,
several design patterns mimic virtual construction (Gamma, 1995).
7.4 VIRTUAL FUNCTION TABLE
What code is generated by the compiler so that function resolution is
postponed until runtime? e solution is both elegant and ecient: a
jump table. When the compiler processes a dynamically bound func-
tion call, it gen ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Software Architect’s Handbook

Software Architect’s Handbook

Joseph Ingeno
Economics-Driven Software Architecture

Economics-Driven Software Architecture

Ivan Mistrik, Rami Bahsoon, Rick Kazman, Yuanyuan Zhang
Software Architect Bootcamp

Software Architect Bootcamp

Raphael Malveau, Ph.D. Thomas J. Mowbray

Publisher Resources

ISBN: 9781439841204