Skip to content

Commit 5339f8b

Browse files
committed
add interface
1 parent 2c123d6 commit 5339f8b

File tree

5 files changed

+27
-2
lines changed

5 files changed

+27
-2
lines changed

JavaOOP/Exercises/BankAccount.java renamed to JavaOOP/Exercises/Inheritance/BankAccount.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package Exercises;
1+
package Exercises.Inheritance;
22

33
public class BankAccount {
44
private String accountNumber;

JavaOOP/Exercises/Book.java renamed to JavaOOP/Exercises/Inheritance/Book.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package Exercises;
1+
package Exercises.Inheritance;
22

33
public class Book {
44
private String title;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package Exercises.Interface;
2+
3+
public interface Downloadable {
4+
public void download();
5+
6+
public void getFileSize();
7+
8+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package Exercises.Interface;
2+
3+
public interface Playable {
4+
public void play();
5+
6+
public void pause();
7+
8+
public void stop();
9+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package Exercises.Interface;
2+
3+
public class Video implements Playable, Downloadable{
4+
5+
6+
@Override
7+
8+
}

0 commit comments

Comments
 (0)