Object-Oriented Programming · Square · Medium
Design a representation for rock-climbing routes. Every route has a name and a difficulty grade, written in forms like 5.8 or 5.10a. Your model must be able to print a route in the format Name: rating, and it must let you compare two routes to determine which one is more difficult.