19 lines
424 B
Java
19 lines
424 B
Java
/*
|
|
|
|
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 = "";
|
|
|
|
public void print_info() {
|
|
System.out.println("Car Information:");
|
|
System.out.println("- manufacturer: " + this.manufacturer);
|
|
System.out.println("- model: " + this.model);
|
|
}
|
|
}
|