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

  • [adinserter block='9']
  • 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.