Skip to content
Snippets Groups Projects
Commit ae9736cc authored by Juuso Rytilahti's avatar Juuso Rytilahti
Browse files

Update Part 3.1 - Inheritance.md

parent 615f4b87
No related branches found
No related tags found
No related merge requests found
......@@ -81,13 +81,13 @@ interface Action {
void do();
}
class Ask extends Action {
class Ask implements Action {
@Override void do() {
new Scanner(System.in).next();
}
}
class Print extends Action {
class Print implements Action {
@Override void do() {
System.out.println("Hello");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment