---
title: "Discussion on \"Strategy Design Pattern\" | Hashnode"
description: "Discussion on \"Strategy Design Pattern\". When to use ?\nConsider a scenario where different child classes inherited from superclass might have same method implementation , so we see a code duplication in child classes. To avoid this we come up with strategy design pattern.\npublic interface D..."
url: "https://hashnode.com/posts/strategy-design-pattern/66d787c40e83353680761046"
---

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

Discussion

# [Strategy Design Pattern](https://pramodreddy.hashnode.dev/strategy-design-pattern?utm_source=hashnode&utm_medium=feed)

When to use ? Consider a scenario where different child classes inherited from superclass might have same method implementation , so we see a code duplication in child classes. To avoid this we come up with strategy design pattern. public interface D...

Sep 3, 2024 · 1 min read · pramodreddy.hashnode.dev  
Read the article

-   [#design-patterns](https://hashnode.com/tag/design-patterns)
-   [#low-level-design](https://hashnode.com/tag/low-level-design)
-   [#java](https://hashnode.com/tag/java)

## Written by

[pramod reddy](https://hashnode.com/@Pramodreddy)

@Pramodreddy

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

Senior software engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
