The access model has independent variation axes, which makes composition a better fit than more subclasses.
Read the full lesson
Sign up free: one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in
Choose composition over inheritance when behaviors vary along independent axes.
The access model has independent variation axes, which makes composition a better fit than more subclasses.
Sign up free: one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in