Skip to content

Commit

Permalink
46
Browse files Browse the repository at this point in the history
  • Loading branch information
codershiyar committed Apr 20, 2020
1 parent 9ff77c4 commit fcbe0e4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lesson46/App.java
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();
}

}






10 changes: 10 additions & 0 deletions lesson46/Payment.java
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");
}

}

0 comments on commit fcbe0e4

Please sign in to comment.