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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How a new operator differs from the operator new?

626


What are the uses of c++ in the real world?

566


Difference between inline functions and macros?

600


Are there interfaces in c++?

560


Explain all the C++ concepts using examples.

686






What are pointers used for c++?

575


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

559


How would you obtain segment and offset addresses from a far address of a memory location?

622


Is c++ a dying language?

591


What is an associative container in c++?

556


What jobs can you get with a c++ certification?

588


Show the declaration for a static member variable.

534


What is object file? How can you access object file?

601


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

622


How do you save a c++ program?

561