answersLogoWhite

0

What are wrapped classes?

User Avatar

Anonymous

13y ago
Updated: 8/20/2019

Wrapped classes are wrapped by Visible ones, which means wrapped ones should be invisible.

Adapter Pattern is very closely related to wrapper, because it comes with 2 different flavors: object wrapper and class wrapper.

There is also another way to define "wrapped" classes: a private class defined within another class.

For example:

class TheWrapper {

private BeingWrapped _internal;

}

class TheVisibleOne {

private class WrappedClass { } // this class is only accessible in TheVisibleOne

}

BeingWrapped and WrappedClass are the ones being wrapped/hide by other classes.

User Avatar

Wiki User

13y ago

What else can I help you with?