Created
June 3, 2018 12:12
-
-
Save deven98/3444d0e8dfd80c467ae8856f12ffb27b to your computer and use it in GitHub Desktop.
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 Point { | |
num x, y; | |
Point(this.x, this.y); | |
// Named constructor | |
Point.origin() { | |
x = 0; | |
y = 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment