From c6246aade21f25ed34c582e029393b44b9e20f29 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Mon, 4 May 2020 19:27:23 +0200 Subject: [PATCH] making field/method more clear --- java/classes/Car.java | 1 + typescript/classes/car.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/java/classes/Car.java b/java/classes/Car.java index 1ecc4e0..0c54dee 100644 --- a/java/classes/Car.java +++ b/java/classes/Car.java @@ -8,6 +8,7 @@ public class Car { public String model = ""; public String manufacturer = ""; + // create the method print_info() public void print_info() { System.out.println("Car Information:"); /** diff --git a/typescript/classes/car.ts b/typescript/classes/car.ts index 89da660..6ba2d79 100644 --- a/typescript/classes/car.ts +++ b/typescript/classes/car.ts @@ -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}`);