Commit 7968a17a authored by Théo GORDYJAN's avatar Théo GORDYJAN

first_push

parent b13f4fb0
This diff is collapsed.
package main;
public enum Brand {
RENAULT,
PEUGEOT,
CITROEN;
}
......@@ -3,6 +3,11 @@ package main;
public class Main {
public static void main(String[] args) {
// write your code here
// CREATE vehicle LAGUNA
// CREATE vehicle D4
// CREATE vehicle A300B
}
}
package main;
public class Vehicle {
private Double price;
private String name;
// private options List<Option>
// private brandName Brand
// METHODS
// Print the name of the car with the options and the price.
// public String toString()
// return "\t" + this.brandName + "is a " + name + " with that options : + " ?? " + ". Price : " + price.
// Add an option
// public void addOption(opt : Option)
// GETTER
// Get the brand of the car
// public Brand getBrand()
// Get the options of the car
// public List<Option> getOptions()
// Get the price of the car
// public Double getPrice();
}
package main;
public enum engineType {
DIESEL,
PETROL,
HYBRID,
ELECTRIC;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment