Skip to content

Convert Bank Transaction process into "Anonymous InnerClass as implementation class".

Notifications You must be signed in to change notification settings

ShivamSeth05/BankATM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

BankATM

Convert Bank Transaction process into "Anonymous InnerClass as implementation class".

Assignment:(BankTransaction Process)

Real Time Example of Anonymous InnerClass


(a)read pinNo pinNo must be 4 digits,else "Invalid pinNo" If pinNo is validated then the PinNo must be in 1111 or 2222 or 3333,else Incorrect PinNo...; If pinNo entered Wrongly for three times,display the msg as "Transaction blocked temporarly;.

(b)If the PinNo is Validated and verified Successfully,select the from the choice
1.WithDraw
2.Deposit
1.WithDraw: Enter the amt The amt must be greater than Zero and multiples of 100,else "Invalid amt" If amt Validated Successfully then create object for "WithDraw" class and

pass amt as parameter to process() method part of process() method check the amt is less than bal or not. If amt is less than bal then perform transaction,else "Insufficient fund" o/p:
Amt WithDrawn :
Balance Amt :
Transaction Successful...

2.Deposit:
Enter the amt
The amt must be greater than Zero and multiples of 100,else "Invalid amt" If amt Validated Successfully then create object for "Deposit" class and pass amt as parameter to process() method o/p:
Amt Deposited:
Balance Amt :
Transaction Successful...


Balance.class
Transaction.class
CheckPinNo.class

ValidatePinNo.class
BankMainClass.class(MainClass)
BankMainClass$1.class
BankMainClass$2.class

About

Convert Bank Transaction process into "Anonymous InnerClass as implementation class".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages