Java: limit to nest classes?
Posted
by HH
on Stack Overflow
See other posts from Stack Overflow
or by HH
Published on 2010-05-02T08:35:48Z
Indexed on
2010/05/02
8:37 UTC
Read the original article
Hit count: 184
A very poor style to code but sometimes unavoidable. It is an extreme example. So
- is there some limit for nesting classes?
- are they equivalent?
- how do you deal with such situations? Create library?
Code
new FileObject().new Format().new Words().new Some().new Continue someThing;
((((new FileObject()).new Format()).new Words()).new Some()).new Continue someThing;
© Stack Overflow or respective owner