wood burning stoves 2.0*
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
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:

It is sorta covered in the JavaRanch Style Guide.
subject: Style convention - private inner class
Similar Threads
Create a Name class to manage different name changes of a person.
Using Java Bean in JSP to show database record
!Help! Error: Exception in thread "main" java.lang.ClassCastException
Thanks anyway
private constructor