View Single Post
Old Feb 23rd, 2008, 3:53 AM   #7
Seif
Hobbyist Programmer
 
Seif's Avatar
 
Join Date: Jan 2006
Location: UK
Posts: 214
Rep Power: 3 Seif is on a distinguished road
Re: two classes, call each others functions - how?!!

Quote:
Originally Posted by Jabo View Post
Wouldn't making each class a friend class to the other do the job for just calling functions?
The friend keyword would allow the classes to access all of each others public, private and protected data and functions. but would not resolve this cyclic dependancy issue.
Seif is offline   Reply With Quote