3. Types and Typeclasses

Typeclasses abstract characteristics of types like String or Int.

Types categorize the kinds of data that appear in a program. Typeclasses provide general abilities that different types can have.

For example, String is a type which means a list of characters. Show is a typeclass. Every type implementing Show will have a “show” method that converts it to a string (the method does not need to have the same name as the typeclass).

Last modified August 18, 2023: 2022-2023 End State (7352e87)