Created
March 13, 2019 02:50
-
-
Save phenomnomnominal/0c9f91f3ad605a6621365a4d4fad1e70 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
import { Engine } from './engine'; | |
import { Radio } from './radio'; | |
import { AutomaticTransmission } from './transmissions/automatic'; | |
import { Wheel } from './wheel'; | |
export class Car { | |
constructor () { | |
this.engine = new Engine(); | |
this.radio = new Radio(); | |
this.wheels = [new Wheel(), new Wheel(), new Wheel(), new Wheel()]; | |
this.transmission = new AutomaticTransmission(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment