Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.FileNotFoundException;
- import java.io.IOException;
- class Computer {
- public void turnON() throws IOException {
- System.out.println("Turned on computer");
- }
- }
- class MacBook extends Computer {
- public void turnON() throws RuntimeException, FileNotFoundException {
- System.out.println("Turned on macBook");
- }
- }
Add Comment
Please, Sign In to add comment