Skip to content

Instantly share code, notes, and snippets.

@LokieVikky
Created February 8, 2023 03:16
Show Gist options
  • Save LokieVikky/861e6767858a173e627ed6d31fdc5f57 to your computer and use it in GitHub Desktop.
Save LokieVikky/861e6767858a173e627ed6d31fdc5f57 to your computer and use it in GitHub Desktop.
void main() {
// My First gist
Calculator calc = Calculator();
int result = calc.addTwoNumbers(1, 2);
int result2 = calc.addTwoNumbers(result, 5);
print(result2);
}
// Framework
class Calculator {
int addTwoNumbers(int num1, int num2) {
return num1 + num2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment