Last active
April 7, 2020 15:37
-
-
Save tailorvj/0cd5705a30666b559c13eb67bc1d1f43 to your computer and use it in GitHub Desktop.
A simple Dart class example
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
void main(){ | |
FullName myName = FullName('Tailor', 'VJ'); | |
print(myName); | |
} | |
class FullName{ | |
String firstName; | |
String lastName; | |
FullName(this.firstName, this.lastName); | |
String toString(){ | |
return '${this.firstName} ${this.lastName}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment