Chevrolet produces different models of motor vehicles. The features for different models vary a lot. For example,
Fantastic news! We've Found the answer you've been seeking!
Question:
Chevrolet produces different models of motor vehicles. The features for different models vary a lot. For example, while all models can be driven, only selected few models support blind spot monitoring. Only the EV models support electric recharge. Aaron, a new hire was assigned to design a unified OS for all Chevy vehicle. The code below is the interface that Aaron created.
a) Review the code below . Which SOLID design principle does this design violate?
b)Rewrite the ChevyVehicle interface and the subclasses to eliminate this SOLID principle violation?
Related Book For
Management A Practical Introduction
ISBN: 978-0078112713
5th edition
Authors: Angelo Kinicki, Brian Williams
Posted Date: