I am working on some legacy code and have come across something that I\'m not sure of. We have a class y that is declared inside of another class x.
class y
class x
I think it's ok, as long as the contained class is only used as utility. I use this sort of construct for example to define complex return types for private methods.