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

Can user-defined object be declared as static data member of another class?

0 Answers  


What methods can be overridden in java?

0 Answers  


what is the use of void main() in C++ language?

0 Answers  


What is the meaning of string in c++?

0 Answers  


Can I learn c++ in a week?

0 Answers  






What is virtual destructor? What is its use?

0 Answers  


What is an operator in c++?

0 Answers  


What are stacks?

0 Answers  


What is "strstream" ?

1 Answers   Huawei,


Does c++ have a hash table?

0 Answers  


What is switch case in c++ syntax?

0 Answers  


Write is a binary search tree? Write an algo and tell complexity?

0 Answers   Axtria,


Categories