19 lines
379 B
TypeScript
Raw Normal View History

2020-03-28 14:45:55 +01:00
/*
Basic Car class
just here to make the demonstration in the main file possible
explanation of the code here will be given in later lessons
*/
export class Car {
manufacturer: string = '';
model: string = '';
print_info() {
console.log('Car Information:');
console.log(`- manufacturer: ${this.manufacturer}`);
console.log(`- model: ${this.model}`);
}
}