The correct answer is: B. may
You may write your own container classes if you have a specific need that is not met by the existing container classes in the standard library. However, it is not necessary to write your own container classes, and there are many advantages to
using the existing container classes.The existing container classes are well-tested and have been used by many people. They are also well-documented, so it is easy to find information about
how to use them. Additionally, the existing container classes are likely to be faster and more efficient than your own custom container classes.If you do decide to write your own container classes, it is important to follow the standard library conventions. This will make it easier for other people to use your container classes. Additionally, it is important to test your container classes thoroughly to ensure that they are correct and efficient.
Here is a brief explanation of each option:
- A. must – This is incorrect because you are not required to write your own container classes.
- B. may – This is the correct answer because you are allowed to write your own container classes if you have a specific need that is not met by the existing container classes.
- C. should not – This is incorrect because there are some cases where it may be beneficial to write your own container classes.
- D. must not – This is incorrect because you are not prohibited from writing your own container classes.