---
title: "Discussion on \"Code Smell 290 - Refused Bequest\" | Hashnode"
description: "Discussion on \"Code Smell 290 - Refused Bequest\". When you ignore your inheritance, you will have trouble with your parents\n\nTL;DR: Subclasses should honor ALL their parent’s contract.\n\nProblems 😔\n\nWrong abstraction\nSubclassification for code reuse\nMisleading hierarchy\nUnused or overridden methods\n..."
url: "https://hashnode.com/posts/code-smell-290-refused-bequest/67ad1b0f7615705d1b51b561"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Code Smell 290 - Refused Bequest](https://maximilianocontieri.com/code-smell-290-refused-bequest?utm_source=hashnode&utm_medium=feed)

When you ignore your inheritance, you will have trouble with your parents TL;DR: Subclasses should honor ALL their parent’s contract. Problems 😔 Wrong abstraction Subclassification for code reuse Misleading hierarchy Unused or overridden methods ...

Feb 12, 2025 · 3 min read · maximilianocontieri.com  
Read the article

-   [#clean-code](https://hashnode.com/tag/clean-code)
-   [#code-smell-1](https://hashnode.com/tag/code-smell-1)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#refactoring](https://hashnode.com/tag/refactoring)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Maxi Contieri](https://hashnode.com/@mcsee)

@mcsee · Buenos Aires

  
[View profile](https://hashnode.com/@mcsee)

Software Engineer

I’m a senior software engineer loving clean code, and declarative designs. S.O.L.I.D. and agile methodologies fan.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
