Equals/HashCode with inheritance (safe)

Java Hard 6 views
Back to Questions

Problem Description

Task: design equals for base class without breaking symmetry (use final class).

Input Format

Java method

Output Format

Return value

Constraints

Use final to keep equals correct.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev