• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Style convention - private inner class

 
Frank Bush
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic