This is a multi part essay question. Please make sure you answer all parts of this question completely.
You are writing a program to help people buy cars. Fortunately, this is very small car company, and they have only four models. You have a "Car" base class, with derived classes, "Sedan", "SUV", "Truck", and "Sports Car."
1) Name which type of creation pattern would be the most appropriate.
2) Explain why this pattern would be appropriate.
If we dig deeper, we find that a car can have many different accessories, such as air conditioning, different kinds of sound systems, backup camera, navigation system, etc.
3) What principle would be useful in this situation?
4) What (non-creation) pattern would be useful to handle these accessories?
Some features have to be coordinated: for example, the sport package might include a certain type of tires and a certain type of suspension. You wouldn't want to get the wrong mix!
5) What creation pattern might be useful? (You may assume this is independent of question 2 if you want.)