In this chapter: |
---|
In many cases, you’ll need to convert variables of one type into different types. This process is called Typecasting (as in giving it a role to play), and it includes:
The physical conversion of a concrete value into another type—data is processed, analyzed, and saved at a different location.
Assigning an object variable to a different object variable of a different but derived type (a type that’s based on the first variable’s class). For example, an object variable of the parent class FirstClass can be set to reference ...
No credit card required