Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
codershiyar committed May 11, 2020
1 parent 1d34986 commit 9d413c2
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Lesson 49 - الدرس/.vscode/launch.json
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"
}
]
}
26 changes: 26 additions & 0 deletions Lesson 49 - الدرس/Java/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package Java;

public class App {

public static void main(String[] args) {
App app = new App();

App.App2 app2 = app.new App2("Coder Shiyar");
// app2.print_message();
}

class App2{
public void print_message(){
System.out.println("تم تشغيل ميتود الذي يتواجد ضمن ال كلاس الداخلي");
}
App2(){
System.out.println("تم تشغيل كونستركتور كلاس الداخلي");
}

App2(String name){
System.out.println("Name: " + name);
}

}

}

0 comments on commit 9d413c2

Please sign in to comment.