Original Post
I have two classes, class Frame and class Button. Class Frame contains Buttons so naturally it needs to see the declaration for Button, so it can call methods on button objects and so on. However, the Button object needs to call functions of the Frame, specifically for the ''click'' function, so that it can update state stored in the frame, so of course Button needs to see Frames declaration. But I can''t do both! I have to include one then include the second one so they both can''t know about each others methods. I''m stumped on how to get out of this, aside from perhaps an ugly hack involving a global.