Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyClass
- {
- public:
- void MyMethod() { cout << "Hello\n"; };
- }
- void aFunction(void (*foo)());
- {
- foo()
- }
- void main()
- {
- MyClass *c1 = new MyClass();
- aFunction(c1->MyMethod);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement