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(){
}
}
Comments
Leave a comment