G
Guest
Is it correct of me to assume that the design motivation for having a nested class is that the nested class should never be able to be instantiated outside of its parent container
a quick example would be if I were creating a ToolChest object, which would contain a ToolsCollection object, but the ToolsCollection could never be instantiated directly by calling New ToolsCollection(), but would automatically be created by the ToolChest object upon ITS creation..
sidebar... if anyone knows of any really good reading on these types of abstract issues that might be less than obvious to an OOP newbie, that would also be appreciated
Thanks!
a quick example would be if I were creating a ToolChest object, which would contain a ToolsCollection object, but the ToolsCollection could never be instantiated directly by calling New ToolsCollection(), but would automatically be created by the ToolChest object upon ITS creation..
sidebar... if anyone knows of any really good reading on these types of abstract issues that might be less than obvious to an OOP newbie, that would also be appreciated
Thanks!