Tech moves fast! Stay ahead of the curve with Techopedia!
Join nearly 200,000 subscribers who receive actionable tech insights from Techopedia.
In the context of software engineering, a wrapper is defined as an entity that encapsulates and hides the underlying complexity of another entity by means of well-defined interfaces.
Patterns and frameworks form an integral component of software engineering. A wrapper pattern is a class with a special interface that allows incompatible classes to work together. Two classes may not be able to perform a data transfer due to the presence of incompatible data access points. For example, if a class accepts a date in DD/MM/YY format from another class that generates a date in MM/DD/YYYY format, neither of the classes can coexist to operate as an integrated module because their data formats are different. The wrapper class solves this problem by converting the data into a compatible format.