Created
November 25, 2019 23:31
-
-
Save r3dm1ke/dee433106cf138d180dbac77753091d1 to your computer and use it in GitHub Desktop.
Class inheritance in Dart
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 MacPro extends Computer { | |
double price; | |
MacPro(String hostname, int numberOfCores, this.price) : super(hostname, numberOfCores); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment