Skip to content

Commit

Permalink
Create Main.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Pankaj-Leo committed Mar 8, 2023
1 parent b5b3e10 commit c4e5247
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Constructor/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import Constructor.Account;
public class Main {

public static void main(String[] args) {

Account bobsAccount = new Account("12345", 500,
"Bob Brown", "[email protected]",
"(087) 123-4567");

System.out.println(bobsAccount.getNumber());
System.out.println(bobsAccount.getBalance());

// bobsAccount.setNumber("12345");
// bobsAccount.setBalance(1000.00);
// bobsAccount.setCustomerName("Bob Brown");
// bobsAccount.setCustomerEmail("[email protected]");
// bobsAccount.setCustomerPhone("(087) 123-4567");

bobsAccount.withdrawFunds(100.0);
bobsAccount.depositFunds(250);
bobsAccount.withdrawFunds(50);

bobsAccount.withdrawFunds(200);

bobsAccount.depositFunds(100);
bobsAccount.withdrawFunds(45.55);
bobsAccount.withdrawFunds(54.46);

bobsAccount.withdrawFunds(54.45);
}
}

0 comments on commit c4e5247

Please sign in to comment.