Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 952581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:55:02+00:00 2026-05-15T23:55:02+00:00

I have come across software developers using the term of creating wrappers of other

  • 0

I have come across software developers using the term of creating wrappers of other classes or APIs or even some code. This is a term used by experienced software programmers.

What do they mean by it?

E.g. we have two types of array sorting techniques; let’s create a wrapper for them.

The above is a very simple example.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:55:03+00:00Added an answer on May 15, 2026 at 11:55 pm

    The term ‘wrapper’ gets thrown around a lot. Generally its used to describe a class which contains an instance of another class, but which does not directly expose that instance. The wrapper’s main purpose is to provide a ‘different’ way to use wrapped object (perhaps the wrapper provides a simpler interface, or adds some functionality).

    The word ‘wrapper’ can also be used when describing classic design patterns.

    Wrapping an object to provide a simplified interface to it is often described as the ‘Facade’ pattern. The wrapper is the facade.

    Sometimes you may have a class which would suit a specific interface, but you can’t change the code for it to make it conform to that interface. You can create a wrapper for that class which implements the interface, but which directs most of the calls to the wrapped object. This is the ‘Adapter’ pattern. The wrapper is the adapter.

    The instance you describe, where you have two classes which can do array sorting using different algorithms sounds like the ‘Strategy’ pattern, where you provide a way to perform an operation on some object, but the algorithm used for that operation may be different depending upon the structure of that object.

    For example, one of your sort algorithms may be great for arrays of length less than 100, but then performance might be an issue for it. The other algorithm might be good for bigger arrays. You can create a ‘wrapper’ for the two algorithms which supports the sort operation but decides which algorithm to use based on the array length.

    The vast majority of wrappers exist to hide some sort of complexity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have come across some code in a few projects which use if(Is.NotNull(SomeObject)) instead
I have come across some legacy code that has the following type of line:
I have come across some legacy code that has raised all my heckles as
I have come across scripts that use: isset($_POST['submit']) as well as code that uses:
I have come across many articles which warn against using links to provide logout
I have come across loop-unrolling but what other types of compiler optimization are there
I have searched in several software repositories but haven't come across any.
Being relatively new to the software industry I have come across a question of
I have come across a strange scenario using the entity framework in the Where
I have come across some SO discussions and others posts (e.g. here , here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.