Files
oracle-java8-certification/src/it/oracle/associate/java8/test/HighSchool.java
Fabio Scotto di Santolo ad11fe5454 Prove domande capitolo 7
2018-02-05 15:31:31 +01:00

28 lines
623 B
Java

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());
}
}