making field/method more clear

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

View File

@ -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:");
/**

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