Answer to Question #242467 in Java | JSP | JSF for Jeba

Question #242467
Develop an application in Java for automating the Banking Operations using interfaces.
Create an interface called “Transaction” which contains the functions such as deposit,
withdraw, and viewBalance. Create another interface called “Displayable” which
contains the Display () function to display the account details.
Create an abstract class called “Account” with bank account details such as acc_name,
acc_no, and balance. Add necessary constructors.
Create a “Bank” class which implements the “Transaction”, “Displayable” interfaces
and inherits “Account” class.
Perform menu driven operations like Deposit, Withdraw and Balance Enquiry, View
Account Details from a Main class. Write logics in the corresponding methods.
1
Expert's answer
2021-09-26T18:51:22-0400
interface Transaction{ 
    void deposit();
    void withdraw(); 
    void viewBalance(); 
}  
interface Displayable{  
    void Display(); 
}  




abstract class Account{ 
    private String acc_name;
    private int acc_no; 
    private double balance;
}
public class Main{ 
    public static void main(String args[]){  
     
     }  
} 


class Bank extends Account implements Transaction, Displayable {
    public void deposit(){
        
    }
    public void withdraw(){
        
    }
    public void viewBalance(){
        
    }
    public void Display(){
        
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS