Activity Forums Salesforce® Discussions How does the Salesforce apex have anything like anonymous inner class?


    September 15, 2016 at 6:53 am

    Hi Mohit,

    Apex does have inner classes, up to one level deep, and there is no support for anonymous inner classes.

    The closest you're going to be able to do is make private inner classes and use those in methods, which half defeats the point. You can use wrapper class under any apex class.

    Hope this helps you.


Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos