making field/method more clear

This commit is contained in:
2020-05-04 19:27:23 +02:00
parent 5aad2f7644
commit c6246aade2
2 changed files with 2 additions and 1 deletions

View File

@ -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}`);