Differences between aggregation and composition in Python Class
Have you heard the term aggregation or composition of classes in python? This can be a little tricky but let me share a simple scenario to explain the concept. Let’s assume we have a class employee and another class salary. The salary class has capability to calculate annual salary given the pay and the bonus. […]