//node.h
class node
{
public:
void sort(node n);
};
I didn't try the code yet . But It's interesting to know if is this a valid case and Why ?
Edit :
This leads me to another question : Can I declare FOO inside a member function like this ?
//FOO.h
Class FOO
{
public:
void sort(int n) ;
void swap(int x , int y );
}
//FOO.cpp
void FOO::sort (int n)
{
FOO obj;
obj.swap(3 , 5) ;
}