Template-generated classes in program code are compiled efficiently
through a process of lazy compilation resulting in improved compilation
times. Lazy compilation includes the generation of objects representing a
class template and a template-generated class as well as the selective
compilation of class methods that are invoked in the program code. Code
sharing is a further enhancement for increasing compilation speed by
providing a system and method for sharing executable object code for
compatible methods among different classes generated from the same class
template.