Previous Topic: InheritanceNext Topic: Object Modeling with CA Gen


Polymorphism

Polymorphism is typically used to describe the capability that an operation can have different methods (different logic) for each subtype that inherits it, and that the correct method gets automatically chosen at runtime. This can be achieved using CA Gen by including a Case of Subtype structure within operation logic. What cannot be done with CA Gen is the addition of new subtypes and new methods for the inherited operations of subtypes without editing and recompiling some of the existing logic. One of the benefits of the best object-oriented systems is the ease with which models and application functionality can be extended without the danger of corrupting existing functionality—making it possible to grow applications.