making field/method more clear
This commit is contained in:
@ -6,7 +6,7 @@ export class Car {
|
||||
manufacturer: string = '';
|
||||
model: string = '';
|
||||
|
||||
// define the function print_info
|
||||
// define the method print_info
|
||||
print_info() {
|
||||
console.log('Car Information:');
|
||||
console.log(`- manufacturer: ${this.manufacturer}`);
|
||||
|
Reference in New Issue
Block a user