Kotlinlearncs.online LogoJava
Return to List

Solve: Course Hash Code

Created By: Geoffrey Challen
/ Version: 2020.10.0

Create a public class named Course providing a single constructor setting three private String? properties: department, number, and title, in that order. Implement hashCode using java.util.Objects by hashing the department and number, only, in that order.

Related Lessons

Stuck? You may find these lessons helpful:

Report a Problem

Attribution must link to this page: https://www.learncs.online/solve/kotlin/course-hash-code/[email protected]