04 Laboratory Exercise 1 - ARG4
04 Laboratory Exercise 1 - ARG4
Section: BT501
CODE
@Override
this.ram = ram;
this.ssd = ssd;
this.cpu = cpu;
}
@Override
return this.ram;
@Override
return this.ssd;
@Override
return this.cpu;
this.ram = ram;
this.ssd = ssd;
this.cpu = cpu;
}
@Override
return this.ram;
@Override
return this.ssd;
@Override
return this.cpu;
class LaptopFactory {
public static Laptop getSpecs(String type, int ram, int ssd, String cpu) {
if ("min".equalsIgnoreCase(type)) {
} else if ("reco".equalsIgnoreCase(type)) {
return null;
System.out.println("Minimum Specs:");
System.out.println(min);
System.out.println("Recommended Specs:");
System.out.println(reco);
OUTPUT