Created
January 28, 2018 16:15
-
-
Save LiewJunTung/4cff73ff983d0f93dd2b348c34647413 to your computer and use it in GitHub Desktop.
Added a subtraction method
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
calculator = | |
interface +c { | |
# create() is to create an instance of the calculator | |
static create(): calculator; | |
# summation, adding two i32.. aka integers together. And return an integer. | |
summation(number1: i32, number2: i32):i32; | |
# look at me, a subtraction method! :) | |
subtraction(number1: i32, number2: i32):i32; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment