Created with <3 with dartpad.dev.
Created
October 22, 2022 19:57
-
-
Save jmichalenko/3b50c6da6612f9e767e0d54ba13081b9 to your computer and use it in GitHub Desktop.
malevolent-destiny-4227
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
class Person { | |
String name; | |
int age; | |
Person({this.name = 'max', this.age = 30}); | |
} | |
double addNumbers(double num1, double num2) { | |
//print(num1 + num2); | |
return num1 + num2; | |
} | |
void main() { | |
var p1 = Person(name: 'Max'); | |
var p2 = Person(age: 31, name: 'Manu'); | |
print(p1.name); | |
print(p2.name); | |
double firstResult; | |
firstResult = addNumbers(1,1); | |
print(firstResult + 1); | |
print('Hello!'); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment