I hear the whole day the terms class library, base class library, Framework, ...
What highlights a framework and what a base class library?
The difference is a semantic one. A Class is an implementation of a specific piece of functionality (usually completely encapsulating the functionality. A Library is a collection of units of functionality (or just one) that add functionality.
The main distinction between a framework and a library is that a framework inverts program control. It informs the developer of what they require. A library, however, does not. Instead, a programmer calls the library when and where he needs it.
Library : It performs a set of specific and well-defined operations. Examples : Network protocols, compression, image manipulation, string utilities, regular expression evaluation, math etc. Framework: It is known to be a skeleton where the application defines the content of the operation by filling out the skeleton.
The distinguishing feature between a class library and a software framework is that in a framework, the flow of control is not determined by the user´s code, but by the framework.
This is also known as Hollywood principle (don´t call us, we call you).
By the way, there is also a nice Wikipedia article on this topic.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With