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

Ask a question
          

Interview questions

What is a container class?


<< Previous  Next>>

C++  - What is a container class? What are the types of container classes? - April 16, 2009 at 14:10 PM by Vidya Sagar 

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

A class is said to be a container class which is utilized for the purpose of holding objects in memory or persistent media. A generic class plays a role of generic holder. A container class is a good blend of predefined behavior and an interface that is well known. The purpose of container class is to hide the topology for the purpose of objects list maintenance in memory. A container class is known as heterogeneous container, when it contains a set of different objects. A container class is known as homogeneous container when it contains a set of similar objects.

Also read

Explain container class and its types in C++.

A container stores many entities and provide sequential or direct access to them. List, vector and strings are............

Define storage classes in C++

Storage class defined for a variable determines the accessibility and longevity of the variable. The accessibility.......

When should we use container classes instead of arrays?

It is advisable to use container classes of the STL so that you don’t have to go through the pain of writing the entire code for handling collisions, making sure its working well, testing it repeatedly with an overhead of time consumption...................

<<Previous  Next>> 



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
 
Home | Login | About us | Sitemap | Contact us