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
Appendix A 341
e this pointer claries that the eld being referenced is a data member
of the object through which the function was invoked. Example A5a shows
the implementation code for a second method declared in the hitCount
class, where this method has a passed parameter with the same name as a
data member. Like other C++ pointers, the this pointer must be derefer-
enced rst before accessing any data eld of its object. Again the derefer-
enced pointer must be put is parentheses because eld access, “.”, has higher
precedence than “*”. An equivalent, and more readable, syntax is achieved
using the -> operator. us, “(* t h i s).
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