Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a class library and a framework

I hear the whole day the terms class library, base class library, Framework, ...
What highlights a framework and what a base class library?

like image 369
Peter Gfader Avatar asked Apr 07 '09 07:04

Peter Gfader


People also ask

What is the difference between a library and a class?

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.

What is difference between library and framework in JS?

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.

What is library and framework with example?

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.


1 Answers

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.

like image 140
Jochen Walter Avatar answered Sep 27 '22 16:09

Jochen Walter