You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a different associated type than Point in this example would help clarify how the associated type is different and why it's needed. My group suggested extending the example to use a Point2D and Point3D and how you could add one to the other.
Or maybe showing how an Iterator is implemented and how Item is used in there.
The text was updated successfully, but these errors were encountered:
https://ferrous-systems.github.io/teaching-material/traits.html#/22
Having a different associated type than
Point
in this example would help clarify how the associated type is different and why it's needed. My group suggested extending the example to use a Point2D and Point3D and how you couldadd
one to the other.Or maybe showing how an Iterator is implemented and how
Item
is used in there.The text was updated successfully, but these errors were encountered: