2020-04-01 15:29:10 +02:00
|
|
|
/*
|
2020-03-28 14:45:55 +01:00
|
|
|
|
|
|
|
Basic Car class
|
|
|
|
just here to make the demonstration in the main file possible
|
|
|
|
explanation of the code here will be given in later lessons
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public class Car {
|
|
|
|
public String model = "";
|
|
|
|
public String manufacturer = "";
|
|
|
|
|
2020-03-28 19:49:57 +01:00
|
|
|
public void print_info() {
|
|
|
|
System.out.println("Car Information:");
|
|
|
|
System.out.println("- manufacturer: " + this.manufacturer);
|
|
|
|
System.out.println("- model: " + this.model);
|
2020-03-28 14:45:55 +01:00
|
|
|
}
|
|
|
|
}
|