• jagdish nikam
  • NEWBIE
  • 20 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Please find below code:
public class MyController {
        private final Account account;
               public MyController() {
                   account = [SELECT Id, Name, Site FROM Account
                   WHERE Id = :ApexPages.currentPage().getParameters().get('id')];
               }
        public Account getAccount() {
               return account;
        }
        
        public PageReference save() {
               update account;
               return null;
        }
   }

In above example is it possible to change the method name "save"?  I am new to the visualforce. Any help would be really appreciable.

Thank you..
Why we don't use static keyword in trigger? i am new to the salesforce. i know little bit about statc keyword but want answer in this case.
Why we don't use static keyword in trigger? i am new to the salesforce. i know little bit about statc keyword but want answer in this case.