1234567891011121314151617181920212223242526272829303132333435363738
class XL{ int i; static int s; public: XL(int ii) // constructor { i = ii; cout << "I am constructor\n" << endl; } ~XL() { cout << "I am destructor\n" << endl; } static int func(int i) { s = i; return s; } }; int main() { cout << XL::func(34) << endl; return 0; }