Created
September 9, 2021 06:11
-
-
Save PythonDotLand/3c097c5c07ec6b780567f5bcd20009f6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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, this.age); | |
| void lieAboutMyAge() { | |
| print("My name is $name, my age is ${age - 10}"); | |
| } | |
| } | |
| void main() { | |
| final me = Person("Erik", 38); | |
| var girlfriend = Person("Shannon", 30); | |
| me.lieAboutMyAge(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment