ajustement des prix
This commit is contained in:
@@ -1,11 +1,41 @@
|
||||
package src.fr.impl.Parts;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import src.fr.impl.CategoryImpl;
|
||||
import src.fr.impl.PartImpl;
|
||||
import src.fr.impl.PartTypeImpl;
|
||||
|
||||
public class Interior extends PartImpl {
|
||||
|
||||
|
||||
|
||||
public class Interior extends PartImpl {
|
||||
|
||||
private static final Set<String> colorSet;
|
||||
static {
|
||||
colorSet = new HashSet<>();
|
||||
colorSet.add("black");
|
||||
colorSet.add("white");
|
||||
colorSet.add("cream");
|
||||
}
|
||||
|
||||
String color;
|
||||
String material;
|
||||
|
||||
public Interior(String name, CategoryImpl category, int price){
|
||||
super(new PartTypeImpl(name,Engine.class, category), price);
|
||||
|
||||
}
|
||||
|
||||
public String getColor(){
|
||||
return this.color;
|
||||
}
|
||||
|
||||
public void setColor(String newColor){
|
||||
this.color = newColor;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user