Impact of Dynamic Polymorphism on Quality of a System
Keywords:
Polymorphism, quality, metric, reusabilityAbstract
Polymorphism has a great impact on the quality of a software .It is mainly of two types, compile time or static polymorphism based on method overloading and runtime or dynamic based on method overriding. If a class is highly polymorphic i.e. reusability of that class is high. If the class is less polymorphic then reusability of that class is low. There are only few metrics available in literature to find the polymorphism factor of a class. In this paper, we introduce a new metric to find polymorphism of a class at compile time and runtime and compare with the existing metric. The purposed metric is applied on 4 design patterns having different behaviour. Dynamic polymorphism is calculated with the help of purposed tool named DynaPoly implemented in AspectJ using aspect oriented programming in java. Eclipse platform is used to perform coding of tool using AspectJ After analysing the results, it is concluded that purposed metric plays a vital role to find reusability, hence quality of a system and gives better results than existing metrics.