Template classes that have already been written to perform common class tasks are called _____ A. container classes B. receptacle classes C. repository classes D. alembic classes

container classes
receptacle classes
repository classes
alembic classes

The correct answer is: A. container classes.

A container class is a template class that has already been written to perform common class tasks. It is a class that can be used to store and organize data. Container classes are often used in object-oriented programming.

Here are some examples of container classes:

  • List: A list is a linear data structure that stores data in a sequence.
  • Stack: A stack is a linear data structure that stores data in a last-in, first-out (LIFO) order.
  • Queue: A queue is a linear data structure that stores data in a first-in, first-out (FIFO) order.
  • Set: A set is a data structure that stores data without any duplicates.
  • Map: A map is a data structure that stores data in a key-value pair.

B. Receptacle classes are classes that are used to store data. They are not template classes, and they do not have any predefined functionality.
C. Repository classes are classes that are used to store and retrieve data. They are not template classes, and they do not have any predefined functionality.
D. Alembic classes are classes that are used to create and manage objects. They are not template classes, and they do not have any predefined functionality.

Exit mobile version