Skip to content

Instantly share code, notes, and snippets.

@BKinya
Created September 10, 2020 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BKinya/48a0fa6327f3dbdb16095228b0f291f2 to your computer and use it in GitHub Desktop.
Save BKinya/48a0fa6327f3dbdb16095228b0f291f2 to your computer and use it in GitHub Desktop.
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