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 are register variables?

0 Answers  


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

0 Answers  


Explain calling an object's member function(declared virtual)from its constructor?

1 Answers  


What is the most useful programming language?

0 Answers  


Why c++ is faster than java?

0 Answers  






What are function prototypes?

0 Answers  


What are the main features of c++?

0 Answers  


What are inline functions? What is the syntax for defining an inline function?

0 Answers  


Define Virtual function in C++.

0 Answers   iNautix,


Write a C++ program to sort digits of all the 4 digit number and display the sorted 4 digit number

1 Answers   TATA, TCS,


What is algorithm in c++ programming?

0 Answers  


What does new return if there is insufficient memory to make your new object?

0 Answers  


Categories