Activity Forums Salesforce® Discussions What is wrapper class? where can we use it in salesforce?

  • PRANAV

    Member
    January 3, 2017 at 5:48 pm

    Hi Sushant,

    A wrapper or container class is a class, data structure, or an abstract data type whose instances are a collections of other objects.It is a custom object defined by Salesforce developer where he defines the properties of the wrapper class. Within Apex & Visualforce this can be extremely helpful to achieve many business scenarios within the Salesforce CRM software. A Wrapper class is a class whose instances are collection of other objects. It is used to display different objects on a Visual Force page in same table. A perfect scenario where a wrapper class can be used is for multiple checkboxes and pagination.

    Hope this helps you.

    Thanks

  • sushant

    Member
    January 4, 2017 at 1:29 pm

    Thanks

  • Avnish Yadav

    Member
    September 30, 2018 at 3:08 am

    Hello,

    Hi,
    Wrapper Class is collection of two or more diffrent objects.
    So these are the abstract data structure by which a developer create its own data structure by groupuing another available data structure.
    It expands user capablity and give more power to developer a customized application. it can be user for creating Visualforce page where page contains Boolean as check box and list item as value..

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos