O'Reilly logo
  • Shukhrat Raimov thinks this is interesting:

To demonstrate this further, consider a Point type that stores two integers, x and y. It could have a constructor that takes the two values. This type could be implemented as either a struct or a class. Figure 2.3 shows the result of executing the following lines of code: