What is a container class? What are the types of container classes?



What is a container class? What are the types of container classes?..

Answer / subham chaudhary

A container class is a class that is used to hold objects in memory or external storage. A container class acts as a generic holder. A container class has a predefined behavior and a well-known interface. A container class is a supporting class whose purpose is to hide the topology used for maintaining the list of objects in memory. When a container class contains a group of mixed objects, the container is called a heterogeneous container; when the container is holding a group of objects that are all the same, the container is called a homogeneous container.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What c++ library is string in?

0 Answers  


What are the three types of access specifiers in C++?

1 Answers  


What is using namespace std in cpp?

0 Answers  


Explain linear search.

0 Answers  


Explain selection sorting?

0 Answers  






What is an adaptor class in c++?

0 Answers  


Can we delete this pointer in c++?

0 Answers  


How can you tell what shell you are running on unix system?

0 Answers  


sizeof - is it a function or operator?

6 Answers   Honeywell,


What is the use of register keyword with the variables?

0 Answers  


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

0 Answers  


What is the full form of india?

0 Answers  


Categories