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

Can I learn c++ without c?

878


What does obj stand for?

834


Write about the members that a derived class can add?

757


How many different levels of pointers are there?

878


What is #include iostream?

970


what are Access specifiers in C++ class? What are the types?

837


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

746


Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300”,”BullCart : 10”) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side

3232


Is it possible to provide special behavior for one instance of a template but not for other instances?

825


What is do..while loops structure?

820


Is c the same as c++?

752


What is setf in c++?

822


What is the use of dot in c++?

828


What do you mean by early binding?

779


Name the operators that cannot be overloaded in C++?

781