permaculture playing cards
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Style convention - private inner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Style convention - private inner class" Watch "Style convention - private inner class" New topic

Style convention - private inner class

Frank Bush

Joined: Apr 27, 2004
Posts: 8

Let�s say that I have a class A with a private inner class B. Do style conventions apply to class B too? More precisely, wouldn�t it make sense to forget about the usual get / set methods?

My opinion is that encapsulation is not so important for a private inner class, and that readability is improved by giving direct access to data members. But I don�t want to make a statement, especially if it will cost me points

Any idea?

Here is a code snippet:

I agree. Here's the link:
subject: Style convention - private inner class
It's not a secret anymore!