• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inner classes

 
Mogens Nidding
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! Sorry for bothering you with this probably mundane issue, but what are your opinions on using inner classes for scoping purposes only? What I have (among other examples) is this:



On one hand, it would be simple to make Field a top-level class, and it would make Schema.java smaller.
On the other hand, "Field" is such a broad concept that I think it makes sense to qualify it as "Schema.Field". And Schema.java isn't all that big (175 lines), so there is no

If it is just a matter of taste, I am keeping the nesting, but if everybody thinks "nested classes are evil", then the assessor will probably think the same.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd say it's a matter of taste.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic