I'm trying to create class Object before defining class. Here is the example.
class A;
class B;
class A{
    public: 
    void fun(B obj){
    }
};
class B{ };
int main(){
    return 0;
}
Here is the Error List:
In member function 'void A::fun(B)':
6   13  [Error] 'obj' has incomplete type
2   7   [Error] forward declaration of 'class B'
Any Solution? I already Searched about it, but failed to solve this.. Thanks in Advance.
 
     
     
     
    