Created
April 17, 2020 14:20
-
-
Save geektutor/14c852ed9c987443297837dbd6462748 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
void main() { | |
Human sodiq = new Human(19); | |
sodiq.talk('I love you'); | |
} | |
class Human { | |
double height; | |
int age = 0; | |
Human(double startingHeight) { | |
height = startingHeight; | |
} | |
void talk(String whatToSay){ | |
print(whatToSay); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment