QUEST
0
public class myControllerExtension { 02 03 private final Account acct; 04 05 // The extension constructor initializes the private member 06 // variable acct by using the getRecord method from the standard 07 // controller. 08 public myControllerExtension(ApexPages.StandardController stdController) { 09 this.acct = (Account)stdController.getRecord(); 10 } 11 12 public String getGreeting() { 13 return 'Hello ' + acct.name + ' (' + acct.id + ')'; 14 } 15 }
07/11/17