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
Ranu JainRanu Jain 

wrapper classes

hii,

 

 

i have a wrapper class cContact in an controller......  

i hane an another method in another apex class.......can i pass list of objects of this wrapper class in the method of another apex class ....and can i have a return type of this method of List<WrapperClass>

 

 

 

 

apex class

{

List<<Wrapper> method(List<Wrapper> lst)

{

}

}

Best Answer chosen by Admin (Salesforce Developers) 
RizwiRizwi

I think you are talking about inner classes.

Inner classes may be visible out side if they are public. but its not a good design to have a inner warpper class in a controller class and use it fro another class.