class design/interaction problem
Im working in a project that has a front end GUI where the user can perform various options, i have created a MainMenu class to represent this, but from this menu the user can select an administer option that will open a separate Admin menu. Im struggling to identify how i can design this, at the moment my thoughts are that the MainMenu will have one Admin object that will display the admin menu, but this Admin oject will need to perfom operation on other Objects that have been created in the MainMenu class. At first i thought that i could just pass the Objects as parameters when creating the Admin oject but then after the user exits, the Admin object would have to return the other Objects in there edited state so that they are updated in the MainMenu object(which i dont know how to do) and then i thought maybe inheritance?, but I really dont know what im doing, essentially i need to access a parent classes attributes(by reference) from a child class(if that makes sense).
apologies if i have made no sense, i've tried to explain in as much detail as i can but im just confusing myself, any help would be much appreciated.
Thanks in advance.