IS-A and HAS-A
easy 40 minIS-A says that an object is a kind of something and can stand in for it.
Watch lesson4:45
What each level should show
The same question is judged differently for mid, senior and staff.
Junior
Must show
- Classifies simple pairs
- Writes both in code
- Knows the UML arrows
Will be probed on
- Employee and Address
- Car and Engine
Stands out
Mentions interfaces as IS-A without code.
Mid
Must show
- Tests promises
- Sees roles and combinations
- Injects the part
Will be probed on
- Square
- Employee and Person
- Cost of HAS-A
Stands out
Puts IS-A at the parts, where it is true.
Senior
Must show
- Contract tests for subtypes
- Maps relations to tables
- Refactors extends safely
Will be probed on
- Stack and Vector
- Equality
- Serialised names
Stands out
Leaves a healthy hierarchy alone, with reasons.
Staff
Must show
- Sets rules for extension points across teams
- Decides by expected change
Will be probed on
- Deep hierarchies
- Disagreement
Stands out
Chooses the option that is easier to reverse.