-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
810f4be
commit d8a14d5
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package Java; | ||
|
||
public class App extends App4 implements App2,App3 { | ||
|
||
public static void main(String[] args) { | ||
System.out.println(App2.APP_NAME); | ||
App app = new App(); | ||
app.show_name("Coder Shiyar"); | ||
App4 app2 = new App4(); | ||
} | ||
|
||
@Override | ||
public void show_name(String name) { | ||
// TODO Auto-generated method stub | ||
System.out.println("Name: " + name); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package Java; | ||
|
||
public interface App2 { | ||
|
||
public static String APP_NAME = "Coder Shiyar App"; | ||
public void show_name(String name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package Java; | ||
|
||
public interface App3 { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package Java; | ||
|
||
public class App4 { | ||
|
||
} |