Broken Hierarchy

This smell arises when a supertype and its subtype conceptually do not share an "IS-A" relationship resulting in broken substitutability.

Related smells: Subclasses Do Not Redefine Methods

Tools

The following set of tools detects this smell: Designite(for C#) DesigniteJava(for Java)

Reference

G. Suryanarayana, G. Samarthyam, T. Sharma, “Refactoring for Software Design Smells: Managing Technical Debt”. Morgan Kaufmann, 2014.


Design Smells

Home

All rights reserved (c) Tushar Sharma 2017-23.