-
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
d8a14d5
commit 8f807ae
Showing
14 changed files
with
122 additions
and
36 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,18 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"type": "java", | ||
"name": "CodeLens (Launch) - App", | ||
"request": "launch", | ||
"mainClass": "Java.App", | ||
"projectName": "java_c87954b4" | ||
}, | ||
{ | ||
"type": "java", | ||
"name": "CodeLens (Launch) - App", | ||
"request": "launch", | ||
"mainClass": "App", | ||
"projectName": "java_c87954b4" | ||
} | ||
] | ||
} |
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,11 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"type": "java", | ||
"name": "CodeLens (Launch) - App", | ||
"request": "launch", | ||
"mainClass": "Java.App", | ||
"projectName": "Java_281ceabd" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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; | ||
// extends + implements معنى | ||
|
||
// extends = مدد او رث | ||
// يعني مدد الكلاس مع كلاس أخر - او اجعل يرث الكلاس من كلاس اخر | ||
|
||
// implements - زود | ||
// يعني تزويد الكلاس بإنترفيس | ||
|
||
class App extends App2 implements Color , Background { | ||
public static void main(String[] args) { | ||
System.out.println(App.name); | ||
} | ||
} | ||
|
||
|
||
class App2{ | ||
static String name = "Coder Shiyar"; | ||
} |
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 Background { | ||
|
||
} |
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 Color { | ||
|
||
} |
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,18 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"type": "java", | ||
"name": "CodeLens (Launch) - App", | ||
"request": "launch", | ||
"mainClass": "Java.App", | ||
"projectName": "java_c87954b4" | ||
}, | ||
{ | ||
"type": "java", | ||
"name": "CodeLens (Launch) - App", | ||
"request": "launch", | ||
"mainClass": "App", | ||
"projectName": "java_c87954b4" | ||
} | ||
] | ||
} |
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,11 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"type": "java", | ||
"name": "CodeLens (Launch) - App", | ||
"request": "launch", | ||
"mainClass": "Java.App", | ||
"projectName": "Java_281ceabd" | ||
} | ||
] | ||
} |
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,28 @@ | ||
package Java; | ||
|
||
class App implements AppInterface{ | ||
@Override | ||
public void setName(String name){ | ||
System.out.println("الأسم: "+ name); | ||
System.out.println(App.course_name); | ||
}; | ||
|
||
public static void setName2(String name){ | ||
System.out.println("الأسم: "+ name); | ||
System.out.println(App.course_name); | ||
} | ||
public static void main(String[] args) { | ||
App app = new App(); | ||
// app.setName("Coder Shiyar"); | ||
|
||
App.setName2("Coder Shiyar"); | ||
|
||
AppInterface appInterface = new AppInterface(){ | ||
public void setName(String name){ | ||
System.out.println(name); | ||
}; | ||
}; | ||
|
||
appInterface.setName("تم تنفيذ اوامر من داخل انترفيس اوبجكت غير نظامي"); | ||
} | ||
} |
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 AppInterface { | ||
|
||
String course_name = "دورة جافا"; | ||
public void setName(String name); | ||
} |
Binary file not shown.