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
Shreya SalesforceShreya Salesforce 

What is the meaning of this line and Why we are using this in wrapper class??

for(Integer i=0;i<lstdlt.size();i++){
lstw.add(new wrapper(lsttest[i].name,lsttest[i].city__c,lstdlt[i].country__c,lstdlt[i].phone__c));
}
 
link is:  https://www.salesforcetutorial.com/wrapper-class-wrapper-class-example/
Lokesh KumarLokesh Kumar
The main use of this line is to add the items from the two different objects into one list which is only possible using the wrapper class.

Normal List cannot store the values from two objects.