Class Initialization in Magento 1.x

Dependency Injection is a way of class initialization . Class Initialization was also available in Magento 1  so why dependency injection in Magento 2? To know the answer of this question lets see how object initialization was available in Magento 1 and what was the problem into it. Object Initialization in Magento 1.x Lets take(…)