Wrapper Class in Salesforce
A Wrapper Class, in simple terms, is an object created in Apex – similar to a custom object but created in code. This data lives only in code during your transaction and does not consume database storage. It’s a data structure or an abstract data type that can contain different objects or collections of objects as its members.
Its instances could be different data types
- Primitive
- Collections
- sObjects