• chaitanya nandamuri 2
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
//This is an extension controller class
public class Speaker_conf_extension {

     private final Speaker__c speaker; // speaker__c is custom object and standard controller which is using This(Speaker_conf_extension)                                                                           //extension class
     
      private ApexPages.StandardController sController;
    
    public Speaker_conf_extension(ApexPages.StandardController scontroller) {
    
    this.speaker= (speaker__C)scontroller.getRecord();
    this.scontroller = scontroller;
    
    }

public PageReference save() {
..................................
...............................
...............
return null;
}

This extension_controller is trying to over ride Save button and insert an InputFile field to upload image.
I didn't understand what the  constructor of extension_controller is doing . Please explain the behaviour ,Thank you