New course! Every coder should learn Generative AI!
Try a free lesson+ 4
Containership is the ability of a class to contain objects of different classes as member data.
This thread will be helpful for you :
https://www-differencebetween-com.cdn.ampproject.org/v/s/www.differencebetween.com/difference-between-inheritance-and-vs-containership/amp/?amp_js_v=a2&_gsa=1&usqp=mq331AQA#referrer=https%3A%2F%2Fwww.google.com&_tf=From%20%251%24s&share=https%3A%2F%2Fwww.differencebetween.com%2Fdifference-between-inheritance-and-vs-containership%2F
https://www.quora.com/What-is-containership-and-how-does-it-differ-from-inheritance
Thanks