I cannot figure out what I have done wrong in the following code segment:
private Door openOtherDoor(Door prizeDoor, Door selectedDoor){
Door.setPrize(prizeDoor.doorPrize);
Door.open(selectedDoor.doorPrize);
I am getting the following error:
Cannot make a static reference to the non-static method open(boolean) from the type Door
Any help would be greatly appreciated