top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is a container class? What are the types of container classes in C++?

+1 vote
637 views
What is a container class? What are the types of container classes in C++?
posted Dec 19, 2014 by Emran

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

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 wellknown 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.

answer Dec 23, 2014 by Mohammed Hussain
Similar Questions
+3 votes

Please provide some details on the static class variable, how it works and any example would be great.

+2 votes

Input iterators, Output iterator, Forward iterator, Random access iterators and Bidirectional iterators.
Can someone please explain the differences ?

...