e a…w any class that implements the
CarEngine interface, like
ElectricEngine. As of today, we need one getter and setter for each for this property to force the developer to use only these types, as you saw in the above example.
Italo Baeza Cabrera
no, we don't NEED them
in fact, setters and getters are a code smell