-
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
9ff77c4
commit fcbe0e4
Showing
2 changed files
with
33 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,23 @@ | ||
|
||
public class App{ | ||
public static Payment payment; | ||
App(){ | ||
System.out.println("مرحبا انا من كونستروكتور"); | ||
} | ||
public static void main(String[] args) { | ||
|
||
App.payment = new Payment(); | ||
// constructor = البناء | ||
// class = فئة - صنف | ||
// method = اسلوب - طريقة وظيفة | ||
|
||
// App app2 = new App(); | ||
} | ||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
|
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,10 @@ | ||
|
||
public class Payment { | ||
Payment(){ | ||
System.out.println("طرق الدفع : "); | ||
System.out.println("1: Visa Card"); | ||
System.out.println("2: Master Card"); | ||
System.out.println("3: PayPal"); | ||
} | ||
|
||
} |