December 2016
Beginner
800 pages
21h 23m
English
Casting is a mechanism by which the programmer can temporarily or permanently change the interpretation of an object by the compiler. Note that this does not imply that the programmer changes the object itself—he simply changes the interpretation thereof. Operators that change the interpretation of an object are called casting operators.
In this lesson, you learn
The need for casting operators
Why C-style casts are not popular with some C++ programmers
The four C++ casting operators
The concepts of upcasting and downcasting ...
Read now
Unlock full access