Booleans
Even pointer value can be used as booleans. False if it is null, true otherwise.
aClass * aPtr; // declare a pointer variable
...
if (aPtr) // will be true if aPtr is not null
Legacy code can contain different boolean abstractions.
Previous slide
Next slide
Back to first slide
View graphic version