correction impl des Parts (engine, Exterio ,...)

This commit is contained in:
trochas
2024-11-25 15:20:15 +01:00
parent e6994a62b9
commit f62ca87ef3
5 changed files with 37 additions and 59 deletions

View File

@@ -1,10 +1,12 @@
package src.fr.impl.Parts;
import src.fr.api.PartType;
import src.fr.impl.CategoryImpl;
import src.fr.impl.PartImpl;
import src.fr.impl.PartTypeImpl;
public class Engine extends PartImpl {
public Engine(PartType partType){
super(partType);
public Engine(String name, CategoryImpl category){
super(new PartTypeImpl(name,Engine.class, category));
}
}

View File

@@ -1,10 +1,11 @@
package src.fr.impl.Parts;
import src.fr.api.PartType;
import src.fr.impl.CategoryImpl;
import src.fr.impl.PartImpl;
import src.fr.impl.PartTypeImpl;
public class Exterior extends PartImpl {
public Exterior(PartType partType){
super(partType);
public Exterior(String name, CategoryImpl category){
super(new PartTypeImpl(name,Engine.class, category));
}
}

View File

@@ -1,10 +1,11 @@
package src.fr.impl.Parts;
import src.fr.api.PartType;
import src.fr.impl.CategoryImpl;
import src.fr.impl.PartImpl;
import src.fr.impl.PartTypeImpl;
public class Interior extends PartImpl {
public Interior(PartType partType){
super(partType);
public Interior(String name, CategoryImpl category){
super(new PartTypeImpl(name,Engine.class, category));
}
}

View File

@@ -1,10 +1,11 @@
package src.fr.impl.Parts;
import src.fr.api.PartType;
import src.fr.impl.CategoryImpl;
import src.fr.impl.PartImpl;
import src.fr.impl.PartTypeImpl;
public class Transmission extends PartImpl {
public Transmission(PartType partType){
super(partType);
public Transmission(String name, CategoryImpl category){
super(new PartTypeImpl(name,Engine.class, category));
}
}