---
title: "Discussion on \"Class Design Hints in Java\" | Hashnode"
description: "Discussion on \"Class Design Hints in Java\". Some hints that will make your classes more acceptable in well-mannered OOP circles:\n1. Always keep data private.\nThis is first and foremost; doing anything else violates encapsulation. You\nmay need to write an accessor or mutator method occasionally..."
url: "https://hashnode.com/posts/class-design-hints-in-java/6228d48533120280724e9e82"
---

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

Discussion

# [Class Design Hints in Java](https://phamduyhieu.com/class-design-hints-in-java?utm_source=hashnode&utm_medium=feed)

Some hints that will make your classes more acceptable in well-mannered OOP circles: 1. Always keep data private. This is first and foremost; doing anything else violates encapsulation. You may need to write an accessor or mutator method occasionally...

Mar 9, 2022 · 3 min read · phamduyhieu.com  
Updated Mar 13, 2022  
Read the article

## Written by

[Hiếu Phạm Duy](https://hashnode.com/@hieupd)

@hieupd · Singapore

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

Senior Software Engineer

Welcome to my blog. I'm Duy Hieu, Senior Software Engineer at Integro Lending (Singapore). I created this blog to share my stories.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
