Swap the Rule, Keep the Class

Included with a plan
This board is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year, or $19.50 for your first year with LAUNCH50, ends 1 Nov, 18:30 UTC.
See plansAlready a member? Sign in
Or start free: a free account opens lessons 2 and 3 of every track.
Lessons that use this board
Swap the Rule, Keep the Class. SWAP THE RULE, KEEP THE CLASS
strategy swaps the behaviour, a factory chooses the object, and the order is handed its rule
1 · THE CHAIN THAT ONLY GROWS
def fee(kind, kg, km):
if
Saved in this browser, and to your account when you sign in.