hi
-
Yes, for example if class1 and class2 are both declared in the same file and class1 is declared before class2. Othwrwise, it depends on what you mean by "use". Next time try a bit more descriptive subject if you post a question, please, "hi" just won't do...
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Computers are evil, EVIL i tell you!! <
-
Hi back, You can refer to a class that hasn't been defined (in simple terms not had it's .h included) but you can't do anything that requires the compiler to know the size or composition of the class. So, without the .h file you can... - declare a reference to an object of the class - declare a pointer to an object of the class - assign pointer to objects of the class You'd be pushed to say that this lot is "using" the class though. What you can't do... - call member functions of the class - do any sort of RTTI (run time type information) - get the size of the class which in turn means you can't create objects of the class Cheers, Ash