LaunchCodeEducation / csharp-web-dev-curriculum

Hugo version of C# Unit 2
http://education.launchcode.org/csharp-web-dev-curriculum/
1 stars 5 forks source link

GA2 instructions have broken link to Equals/HashCode chapter #74

Open DelLRosa opened 3 months ago

DelLRosa commented 3 months ago

https://education.launchcode.org/csharp-web-dev-curriculum/assignments/tech-jobs-oo/task-2/index.html

broken link: https://education.launchcode.org/csharp-web-development/chapters/classes-part2/equals-shortcut.html

context:

The PositionType Class

Open the class file. This time the constructors are done. Sally’s comments direct you to where you need to add the custom methods.

Code a ToString() method that just returns the value of a PositionType object.
Use the Generate option again to add the Equals() and GetHashCode() methods. Refer to the [final section]([](https://education.launchcode.org/csharp-web-development/chapters/classes-part2/equals-shortcut.html)) of the “Classes and Objects, Part 2” chapter if you need a quick review.
Assume that two PositionType objects are equal when their id fields match.