Functions as Class Methods

This section looks at functions which are part of classes—that is, class methods. Classes are a concept of C++ and cannot be used in C; consequently this section will probably not be of great interest to C-only programmers.

Classes make application design and code reuse easier by allowing more intuitive and orderly grouping of source code functionality into reusable objects. However, with the added ease of use come also additional performance and footprint considerations. These considerations are different depending on the way in which class methods are actually used. This section looks in detail at the implications of different techniques of using class methods and provides guidelines on when and where to use ...

Get C++ Footprint and Performance Optimization now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.