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,27 @@
package it.oracle.associate.java8.test;
import java.io.FileNotFoundException;
import java.io.IOException;
class School {
public int getNumberOfStudentsPerClassroom(String... students) throws IOException {
return 3;
}
public int getNumberOfStudentsPerClassroom() throws IOException {
return 9;
}
}
public class HighSchool extends School {
@Override
public int getNumberOfStudentsPerClassroom() throws FileNotFoundException {
return 2;
}
public static void main(String[] args) throws IOException {
School school = new HighSchool();
System.out.println(school.getNumberOfStudentsPerClassroom());
}
}