Skip to content

Instantly share code, notes, and snippets.

@RhyshaKachari
Created July 30, 2022 15:21
Show Gist options
  • Save RhyshaKachari/e0fb00eac34761b1db6c3d43284204b7 to your computer and use it in GitHub Desktop.
Save RhyshaKachari/e0fb00eac34761b1db6c3d43284204b7 to your computer and use it in GitHub Desktop.
snowy-illusion-4802
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