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