An obvious solution
Put a type code in each object
Make sure that the type code is at the same offset in all objects
Use the type code to decide what to do
Previous slide
Next slide
Back to first slide
View graphic version