Created with <3 with dartpad.dev.
Created
July 30, 2022 15:21
-
-
Save RhyshaKachari/e0fb00eac34761b1db6c3d43284204b7 to your computer and use it in GitHub Desktop.
snowy-illusion-4802
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
int addNumbers(int num1 ,int num2){ | |
//print(num1 + num2) ; | |
return(num1+num2); | |
} | |
class Person{ | |
String name = 'Rhysha'; | |
int age = 19; | |
} | |
void main() { | |
var firstResult = addNumbers(1,2); | |
print(firstResult) ; | |
firstResult = addNumbers(1,1); | |
print('Hello'); | |
print(firstResult); | |
var p1 = Person(); | |
print(p1); | |
print(p1.name); | |
var p2 = Person(); | |
p2.name = 'Yatharth'; | |
print(p2.name); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment