function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Amit Karlekar 4Amit Karlekar 4 

Wrapper Class in Apex Trigger

Do we need to know LWC & AURA to learn wrapper class? and What is the best practice to learn wrapper class as a beginner?
SwethaSwetha (Salesforce Developers) 
HI Amit,

Learning LWC and Aura is not a prerequisite for learning wrapper classes in Salesforce. Wrapper classes are a data structure or an abstract data type that can contain different objects or collections of objects as its members. They are used to simplify complex data structures and make them easier to work with. Wrapper classes can be used in both LWC and Aura components, but they are not dependent on these technologies.

See more info on https://www.salesforceben.com/what-is-wrapper-class-in-salesforce/
https://www.educative.io/answers/junior-dev-learning-wrapper-classes


If this information helps, please mark the answer as best. Thank you
Arun Kumar 1141Arun Kumar 1141
Hi Amit,

Knowing LWC (Lightning Web Components) and Aura is not a prerequisite for learning about wrapper classes.Wrapper classes are a concept used in various programming languages, including Apex (the programming language used in Salesforce). While understanding LWC and Aura can enhance your overall Salesforce development skills, they are not directly related to wrapper classes.

A Wrapper Class, in simple terms, is an object created in Apex – similar to a custom object but created in code. 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 of  different data types:
- Primitive
- Collections
- sObjects
For better understanding and best practices you can take a refrence from this  website - https://www.apexhours.com/wrapper-class-in-salesforce/

If this helps you please mark its as a best answer
Thanks!