Guest User

Untitled

a guest
Apr 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. class A {
  2. public:
  3. static bool foo(A& a, A& b) {
  4. return true;
  5. }
  6.  
  7. bool foo(A& b) {
  8. return false;
  9. }
  10. };
  11.  
  12. int main() {
  13. A a, b;
  14.  
  15. A::foo(a,b);
  16. a.foo(b);
  17.  
  18. return 0;
  19. }
Add Comment
Please, Sign In to add comment