Prove domande capitolo 7

This commit is contained in:
Fabio Scotto di Santolo
2018-02-05 15:31:31 +01:00
parent 624ff09ad8
commit ad11fe5454
14 changed files with 279 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package it.oracle.associate.java8.test;
import java.io.EOFException;
class Machine {
public boolean turnOn() throws EOFException { return true; }
}
public class Robot extends Machine {
@Override
public boolean turnOn() { return false; }
public static void main(String[] doesNotCompute) throws Exception {
Machine m = new Robot();
System.out.println(m.turnOn());
}
}