1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <iostream> static class C1 { public: void f() { std::cout << "C1::f()" << std::endl; } void g() { std::cout << "C1::g()" << std::endl; } } Obj; int main() { Obj.f(); Obj.g(); return 0; } /* end */
1 2
C1::f() C1::g()