Is There Anyway To Pass A Variable Of Class In Other Class?
===

I Want Two class,i have a static variable in Class Class1 And I want to pass the value that it got to Class Class2.

For Example :

    Class1.h{
    static int x;
    int Method1();
    }

    Class1.cpp{
    int Class1::x=0;
    int Class1::Method1(){
    x=2;
    }
    }
Now Class2

    Class2.cpp{
    //Here I want to have the value of x=2 
    }

