Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean equals(A other)
- {...}
- public boolean equals(B other)
- {...}
- public boolean equals(Object other)
- {...}
- A a = new A();
- C c = new C();
- a=c;
- System.out.println(a.equals(c));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement