Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Style convention - private inner class" Watch "Style convention - private inner class" New topic
Author

Style convention - private inner class

Frank Bush
Greenhorn

Joined: Apr 27, 2004
Posts: 8
Hello,

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:



Thanks,
Frank
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Style convention - private inner class
 
Similar Threads
Create a Name class to manage different name changes of a person.
!Help! Error: Exception in thread "main" java.lang.ClassCastException
Thanks anyway
private constructor
Using Java Bean in JSP to show database record