-1
I can’t find much python-like, I know you can do that and I know how to do it, but I don’t know why anyone would want to do that, since the inner class is unable to access the attributes and methods of the outer class, Which is something I would normally use an inheritance to sort out, but other than the gambling inheritance, does using that come in handy? I saw my teacher doing a course in Django that I am currently doing.
This question if well worked has the potential to become a very good question and generate good answers. Asking carefully about the usefulness of nested classes is undefined scope, perhaps associating what are the advantages of using nested classes to a specific Pattern design, for example Builder, along with an example of use.
– Augusto Vasques