Answers

Question and Answer:

  Home  C++ Containers

⟩ Can you please explain the difference between homogeneous and a heterogeneous container?

A container is an object holding instances of another object. A container that contains or holds objects of a single type is said to be homogenous. On the other hand, A container that contains objects (derived from a common base class) of a variety of types is termed heterogeneous.

 258 views

More Questions for you: