Abstract
AbstractTheCentiJsystem automatically generates code that simulates multiple inheritance in Java. The generated code inputs a series of instances and outputs specifications that can be combined using multiple inheritance. The multiple inheritance of implementation is obtained by simple message forwarding. ThereflectionAPI of Java is used to reverse engineer the instances, and so the program can generate source code, but does not require source code on its input. Advantages ofCentiJinclude compile‐time type checking, speed of execution, automatic disambiguation (name space collision resolution) and ease of maintenance.Simulation of multiple inheritance was previously available only to Java programmers who performed manual delegation or who made use of dynamic proxies. The technique has been applied at a major aerospace corporation. Copyright © 2002 John Wiley & Sons, Ltd.
Published Version
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have