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

Explain static and dynamic memory allocation with an example each.

728


Can c++ be faster than c?

692


Is there any function that can skip certain number of characters present in the input stream?

667


What do you mean by a template?

724


Explain what are single and multiple inheritances in c++?

636






Why do we use structure in c++?

668


How much maximum can you allocate in a single call to malloc()?

723


Is there structure in c++?

679


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

693


Describe public access specifiers?

668


What is the use of typedef?

732


Is c++ built on c?

662


What is static class data?

658


What is vector pair in c++?

812


What is abstract class in c++?

687