Use composition instead of inheritance for Odometer classes
Opened this issue · 0 comments
platisd commented
Description
Currently DirectionalOdometer
is extending DirectionlessOdometer
so to utilize some common functionality. However, a DirectionalOdometer
is not a DirectionlessOdometer
. Both are Odometer
s that are using an Encoder
.
Definition of Done
DirectionalOdometer
is no more inheriting from a concrete class and there's little to no code duplication.