Created
September 10, 2020 19:20
-
-
Save BKinya/48a0fa6327f3dbdb16095228b0f291f2 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 Computer{ | |
final CPU cpu; | |
final RAM ram; | |
Computer(this.cpu, this.ram); | |
} | |
class CPU{ | |
final String make; | |
final double clockSpeed; | |
final String socketType; | |
CPU(this.make, this.clockSpeed, this.socketType); | |
} | |
class RAM{ | |
final String type; | |
final int speed; | |
final int pins; | |
RAM(this.type, this.speed, this.pins); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment