Composition in Python

What is Composition:- As the name implies , In composition one of the classes is “composed” of one or more instance of other classes. In other words one class is container and other class is content and if you delete the container object then all of its contents objects are also deleted. Composition models a “has a” relationship […]

Composition in Python Read More »