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 is the object serialization?

0 Answers  


what are Operators and explain with an example?

0 Answers  


what is the basic concept of c++(object oriented programing)

4 Answers   Wipro,


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

0 Answers  


When you overload member functions, in what ways must they differ?

0 Answers  






Is recursion allowed in inline functions?

0 Answers  


What is an adaptor class or Wrapper class?

1 Answers  


What is an iterator class in c++?

0 Answers  


What is the latest c++ version?

0 Answers  


What is size of a empty class?

7 Answers   Microsoft, Tata Elxsi, Wipro,


How to demonstrate the use of a variable?

0 Answers  


Can a constructor be private?

0 Answers  


Categories