This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
It might work, but it is bad design. Your Foo class should keep quiet about its inside workings (which is called encapsulation). If the Foo class should be designed to allow access, it should be via one of its methods.Also google for Law of Demeter.