Skip to content

Commit

Permalink
refactor: push down method m2 from class A to class B
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-brito committed May 24, 2020
1 parent 16ffeb0 commit 4ed9662
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/p8/A.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ public class A {
public void m1() {
System.out.println("m1");
}

public void m2() {
System.out.println("m2");
}
}
4 changes: 4 additions & 0 deletions src/p8/B.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package p8;

public class B extends A {
public void m2() {
System.out.println("m2");
}

public void m3() {
System.out.println("m3");
}
Expand Down

0 comments on commit 4ed9662

Please sign in to comment.