Advertisement

Conversions

  • Daniel M. Solis

Abstract

To get an understanding of what conversions are, let’s start by considering the simple case in which you declare two variables of different types and then assign the value of one (the source) to the other (the target). Before the assignment can occur, the source value must be converted to a value of the target type. Figure 18-1 illustrates type conversion.

Keywords

Base Class Type Person Target Type Reference Type Conversion Condition 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Daniel M. Solis 2010

Authors and Affiliations

  • Daniel M. Solis

There are no affiliations available

Personalised recommendations