Amazon produces different types of advanced toys. These toys have different features such as: talking, dancing, obey voice command, moving around, flying, and live streaming. However, some of the toys do not support all the above features. Amazon wants a unified OS for their toys and asked Nick to design a program. Nick’s design of the toy interface and two sample subclasses are shown below. Study this design and answer the following two questions.
Which SOLID design principle does this design violate ?
b. Redesign the interface and the subclasses to eliminate the SOLID principle violation ?