17 lines
364 B
Java
17 lines
364 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 String get_info() {
|
|
return "Car Information:\n- manufacturer: " + this.manufacturer + "\n- model: " + this.model;
|
|
}
|
|
}
|