Framework vs Library
Table of Contents
Inversion of Control is a key part of what makes a framework different to a library.
A library is essentially a set of functions that you can call, these days usually organized into classes. Each call does some work and returns control to the client.
A framework embodies some abstract design, with more behavior built in. In order to use it, we need to insert our behavior into various places in the framework either by subclassing or by plugging in our own classes. The framework’s code then calls our code at these points.