---
title: "Discussion on \"Object Oriented Programming in JAVA\" | Hashnode"
description: "Discussion on \"Object Oriented Programming in JAVA\". Inheritance (`extends`/ is-a)\n\n\nUnderstanding Method Variations\n\nOverridden Methods: Subclasses can modify the behavior of inherited methods.\n\nSpecialized Methods: Subclasses can introduce new methods specific to their type (May need down casting to ..."
url: "https://hashnode.com/posts/object-oriented-programming-in-java/662c72e0ad5a5862e20b2915"
---

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

Discussion

# [Object Oriented Programming in JAVA](https://paraskaushik.hashnode.dev/object-oriented-programming-in-java?utm_source=hashnode&utm_medium=feed)

Inheritance (\`extends\`/ is-a) Understanding Method Variations Overridden Methods: Subclasses can modify the behavior of inherited methods. Specialized Methods: Subclasses can introduce new methods specific to their type (May need down casting to ...

Apr 27, 2024 · 13 min read · paraskaushik.hashnode.dev  
Updated Jan 2, 2025  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#oops](https://hashnode.com/tag/oops)

## Written by

[Paras kaushik](https://hashnode.com/@paraskaushik)

@paraskaushik · India

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

Onwards and Upwards

Hello, I'm Paras Kaushik! 👋 I'm a dedicated software engineer based in India, specializing in C++ and proficient in the MERN stack. 🤝 Interested in collaborating on innovative projects that require my technical expertise. 💬 Passionate about participating in discussions related to software architecture and best practices. 📧 Feel free to reach out to me via email: \[paraskaushik12@gmail.com\] 🔗 Connect with me on LinkedIn: \[https://www.linkedin.com/in/the-paras-kaushik/\]

## Responses 2

Markdown supported · ⌘↵ to post

[Kiran Kanumuri](https://hashnode.com/@contactkkiran)

[May 4, 2024](https://hashnode.com/posts/object-oriented-programming-in-java/662c72e0ad5a5862e20b2915/comment/66359ed474d3bafcebf3cff0)

Thank you for your excellent work on the topic! I have a small suggestion that could enhance your discussion on inheritance. You might consider including a note about the `@Override` annotation. It ensures that the compiler checks whether the method signature matches that of a method in the superclass, which helps catch errors caused by typos in superclass method names.

By incorporating this point, you can further highlight how `@Override` contributes to code reliability and reduces potential bugs. I hope this suggestion is helpful, and I look forward to seeing more of your content!

[Paras kaushik](https://hashnode.com/@paraskaushik)

[May 4, 2024](https://hashnode.com/posts/object-oriented-programming-in-java/662c72e0ad5a5862e20b2915/comment/66359ed474d3bafcebf3cff0#reply-6635e466920c49b03ce554c3)

Thank you. Added to the article

[Kiran Kanumuri](https://hashnode.com/@contactkkiran)

[May 4, 2024](https://hashnode.com/posts/object-oriented-programming-in-java/662c72e0ad5a5862e20b2915/comment/66359dc748321e4560ff6b11)

Very nice topic

Small suggestion under inheritance. You may include

@Override\` ensures that the compiler checks whether the method signature matches that of a method in the superclass. This helps catch errors where there might be typos in patent class method names

[Paras kaushik](https://hashnode.com/@paraskaushik)

[May 4, 2024](https://hashnode.com/posts/object-oriented-programming-in-java/662c72e0ad5a5862e20b2915/comment/66359dc748321e4560ff6b11#reply-6635e45e85989652ece0c31d)

Thank you. Added to the article
