19 lines
379 B
TypeScript
19 lines
379 B
TypeScript
|
/*
|
||
|
|
||
|
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}`);
|
||
|
}
|
||
|
}
|