Last active
October 16, 2021 20:29
-
-
Save deepak-terse/f3d04539c0e98ac04b54104d7c455edf 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 Car { | |
id: string; | |
modelName: string; | |
color: Color; | |
constructor(modelName: string, color: Color) { | |
this.modelName = modelName; | |
this.color = color; | |
} | |
start() {} //Some logic to start the engine | |
stop() {} //Some logic to stop the engine | |
changeGears() {} //Some logic to change the gears | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment