Where and how is the term used WRAPPER in programming, what does it help to do?

Viewed 94458

I come across software developers using the term of creating Wrappers of other classes or APIs or even some codes, this is a term used by experienced Software Programmers

So any idea what do they mean by it;

e.g. a simple question; we got two types of array sorting techniques, lets create a wrapper for it

The above one is a very simple example

8 Answers

Say you want to add some more functionalities to your code but you cannot change the code. That's where wrapper helps. You can use a wrapper to get the output without changing the original code.

A practical example of using a wrapper at the system architecture level is that you have a program on your server that do certain processes, and you develop a wrapper through which provides the processing capabilities of that program in the form of several web services. Here, in addition to presenting interfaces to access the capabilities of the program on the web, the wrapper can also provides some default values / safe inputs for it.

Related