Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. public boolean equals(A other)
  2. {...}
  3.  
  4. public boolean equals(B other)
  5. {...}
  6.  
  7. public boolean equals(Object other)
  8. {...}
  9.  
  10. A a = new A();
  11. C c = new C();
  12. a=c;
  13. System.out.println(a.equals(c));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement