I want to declare two classes, say Cat and Dog, then when they meet in my game I want them to be able to question each other.
My problem is that if you declare Dog first then it can't ask Cat any questions and its the same the other way.
Is there a way the instances can interrogate each other to find out what methods and data they have?
Is there a way to avoid this problem? Would advance declaration do it?
This must happen all the time, I'm just new.
Can anyone help?



LinkBack URL
About LinkBacks


