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).


Chapter 3 Reading Guide

We learn about types and typeclasses. Types are familiar. Typeclasses are more abstract - roughly, they specify abilities.

Chapter 3 Problem Set

Chapter 3 Walkthrough

Chapter 3 Daily 01

Chapter 3 Daily 02

Chapter 3 Daily 03

Chapter 3 Daily 04

Chapter 3 Daily 05 Problem Set

Chapter 3 Daily 05 RG

Reading questions to make sure you actually understand the details of the Daily 5 assignment.

Chapter 3 Daily 06

Chapter 3 Daily 07

Chapter 3 Quiz 2

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