Skip to content

Instantly share code, notes, and snippets.

@sfmishra
Last active February 2, 2019 10:53
Show Gist options
  • Save sfmishra/29e9172e94cca2f059fda7c7b05b51c5 to your computer and use it in GitHub Desktop.
Save sfmishra/29e9172e94cca2f059fda7c7b05b51c5 to your computer and use it in GitHub Desktop.
/**
* this class extends AbstractController and implements abstract method
*/
public class Calculator extends AbstractController {
public Calculator() {
System.debug(' Calculator class extends AbstractController');
}
public override Integer calculate(Integer val1, Integer val2) {
Integer result = val1 + val2;
system.debug(' Calculated value : ' + result);
return result;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment