Skip to content

Instantly share code, notes, and snippets.

@deepak-terse
Last active October 16, 2021 20:29
Show Gist options
  • Save deepak-terse/f3d04539c0e98ac04b54104d7c455edf to your computer and use it in GitHub Desktop.
Save deepak-terse/f3d04539c0e98ac04b54104d7c455edf to your computer and use it in GitHub Desktop.
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