Last active
February 2, 2019 10:53
-
-
Save sfmishra/29e9172e94cca2f059fda7c7b05b51c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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