Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Define an interface named Vehicle with the following properties: make of type string model of type string year of type number start method which returns void and logs "Engine started" to the console. Implement a class named Car that implements the Vehicle interface. The Car class should have: A constructor that initializes the make, model, and year properties. Implement the start method to log "Car engine started" to the console. Create an instance of the Car class and initialize it with some values for make, model, and year. Call the start method on the instance of the Car class to verify that it logs the appropriate message to the console. Finally, compile your TypeScript code into JavaScript and run it to ensure everything works as expected

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages