Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class bankAccountMain
- {
- public static void unionActivate(bankAccount main , bankAccount alt)
- {
- main.unionAccount(alt) ;
- alt.amountOfMoney(0) ;
- }
- public static void main(String[] args)
- {
- bankAccount a = new bankAccount("a" , 500) ;
- bankAccount b = new bankAccount("b" , 100) ;
- bankAccount c = new bankAccount("c") ;
- }
- }
Add Comment
Please, Sign In to add comment