This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Computer { | |
private Processor processor; | |
private List<Ram> ramList = new ArrayList<>(); | |
private List<HardDisc> hardDiscsList = new ArrayList<>(); | |
private boolean power = false; | |
public Computer(Processor processor, List<Ram> ramList, List<HardDisc> hardDiscsList) { | |
this.processor = processor; | |
this.ramList = ramList; | |
this.hardDiscsList = hardDiscsList; |