---
title: "Discussion on \"Why Use Getters/Setters Instead of Public Fields?\" | Hashnode"
description: "Discussion on \"Why Use Getters/Setters Instead of Public Fields?\". getters and setters might seem useless but they can be extremely beneficial for large software projects"
url: "https://hashnode.com/posts/why-use-getters-setters-instead-of-public-fields/63a94241eb3cd6a7c23ae41f"
---

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

Discussion

# [Why Use Getters/Setters Instead of Public Fields?](https://houssem.hashnode.dev/why-use-getters-setters-instead-of-public-fields?utm_source=hashnode&utm_medium=feed)

getters and setters might seem useless but they can be extremely beneficial for large software projects

Dec 26, 2022 · 4 min read · houssem.hashnode.dev  
Read the article

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

## Written by

[Houssem Nasri](https://hashnode.com/@houssem)

@houssem · Tunisia

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

Computer Engineering Student & Java Enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
