Activity › Forums › Salesforce® Discussions › What is the use of this keyword in Salesforce Apex? Tagged: Salesforce Apex, Salesforce Keywords, Salesforce Method, Salesforce Variable, This Keyword Salesforce® Discussions What is the use of this keyword in Salesforce Apex? Posted by Anurag algoworks on August 29, 2018 at 12:16 PM What is the use of this keyword in Salesforce Apex ? madhulika shah replied 7 years, 8 months ago 3 Members · 2 Replies Salesforce ApexSalesforce KeywordsSalesforce MethodSalesforce VariableThis Keyword 2 Replies chanchal kumar Member August 29, 2018 at 12:19 PM Hello Anurag This keyword defines a method/variable that is only initialized once, and is associated with an (outer) class, and initialization code. Example: public class Foo { public Foo(String s) { /* … */} public foo() { this(‘memes repeat’); } } [adinserter block='9'] madhulika shah Member August 29, 2018 at 12:19 PM Hi Anurag, This keyword represents the current instance of a class, in constructor chaining. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me