December 1998
Intermediate to advanced
624 pages
13h 8m
English
![]()
This chapter describes the syntax and semantics of virtual functions, which are the way C++ does dynamic binding. Part II discusses dynamic binding and should be read before this chapter. Dynamic binding is an important concept, and most member functions should be virtual unless there is some compelling performance reason not to make them virtual or unless the programmer intentionally makes the member function a leaf (also known as final) member function (see FAQ 33.10).
A virtual member function is a member function preceded ...
Read now
Unlock full access