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

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.

What are the different types of inheritance?
Different types of inheritance - Single Inheritance, Multiple Inheritance, Hierarchical inheritance, Multilevel inheritance...
What is a concrete derived class?
What is a concrete derived class? - The derived class that implements the missing functionality of an abstract class...
Explain why and when do we use protected instead of private
Explain why and when do we use protected instead of private - Private data members cannot be accessed outside the class. When a class inherits a base class....
Post your comment