Created
August 15, 2020 22:23
-
-
Save Zambrella/2477b8da27c4c5b1b51c6d2a2a40607e 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
void main() { | |
BM newBM = BM(amount: 3, discomfort: 5, bristolScale: 3, name: 'Cool name', submittedTime: 'Thursday'); | |
print(newBM.amount); | |
print(newBM.name); | |
} | |
abstract class Entry { | |
String name; | |
String submittedTime; | |
Entry(this.name, this.submittedTime); | |
} | |
class BM extends Entry { | |
int bristolScale; | |
int discomfort; | |
int amount; | |
BM({this.amount, this.discomfort, this.bristolScale, name, submittedTime}) : super(name, submittedTime); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment